not ready yet obviously (check projects)
Find a file
dependabot[bot] cef9162181
Bump qs, body-parser and express
Bumps [qs](https://github.com/ljharb/qs) to 6.14.1 and updates ancestor dependencies [qs](https://github.com/ljharb/qs), [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `qs` from 6.13.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.13.0...v6.14.1)

Updates `body-parser` from 1.20.3 to 1.20.4
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.3...1.20.4)

Updates `express` from 4.21.2 to 4.22.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.2...v4.22.1)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
- dependency-name: body-parser
  dependency-version: 1.20.4
  dependency-type: direct:production
- dependency-name: express
  dependency-version: 4.22.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 16:05:47 +00:00
backend Improve login 2025-01-26 08:56:25 +01:00
frontend Improve login 2025-01-26 08:56:25 +01:00
.gitignore Initial Commit 2025-01-10 18:53:32 +01:00
package-lock.json Bump qs, body-parser and express 2026-01-01 16:05:47 +00:00
package.json Bump qs, body-parser and express 2026-01-01 16:05:47 +00:00
README.md Initial Commit 2025-01-10 18:53:32 +01:00

Plans for this discord bot management project

  • Use node.js backend
  • Need the ability to login.
  • One backend can have multiple bots
  • The bots will be in a tab or something similar
  • Control bots:
    • Restart bot
    • Update bot
    • Change config
    • Backup data/ dir (gzip, then download)
    • Restore data/ dir (upload gzipped archive)
    • Check if the server can be put down for maintenance (check if there are timers in the near future (hour))
    • Add a new bot
    • Download logs (specify time range & file format (gzip or plain))
    • Ability to see a log equivalent to journalctl -fu discord_bot.service
    • Statistics (uptime, amount of commands, last error, commands per hour, commands last 24 hours etc..., )

Bots will have an internal api that they communicate with the backend server over.
Using websockets for the follow log is probably best?

Misc Thoughts

  • Check if there are any software updates? If there are, send email?

First priority:

  • Create a basic html page.

SQLITE SCHEMAS

TODO: Figure out how to implement permissions and stuff in a good way

CREATE TABLE users (
	user_id INTEGER PRIMARY KEY AUTOINCREMENT,
	username TEXT UNIQUE,
	hashed_password TEXT,
	email TEXT,
	created_at INTEGER,
	is_verified INTEGER,
	is_administrator INTEGER
);

CREATE TABLE tokens (
	token PRIMARY KEY UNIQUE,
	user_id INTEGER,
	expires_at INTEGER
);

CREATE TABLE discord_bots ( 
	id INTEGER PRIMARY KEY AUTOINCREMENT,
	owner_id INTEGER,
	is_public INTEGER,

);