Made radical changes and setup foundation for SQLite database

This commit is contained in:
WatDuhHekBro 2021-12-08 01:27:56 -06:00
parent 69a8452574
commit 16e42be58d
No known key found for this signature in database
GPG key ID: E128514902DF8A05
22 changed files with 715 additions and 639 deletions

View file

@ -2,6 +2,7 @@
- [Structure](#structure)
- [Version Numbers](#version-numbers)
- [Environment Variables](#environment-variables)
- [Utility Functions](#utility-functions)
- [Testing](#testing)
@ -34,6 +35,17 @@ Because versions are assigned to batches of changes rather than single changes (
*Note: This system doesn't retroactively apply to TravBot-v2, which is why this version naming system won't make sense for v2's changelog.*
# Environment Variables
Certain variables are set via `.env` at the project root. These are for system configuration and should never change dynamically within the program, essentially read-only variables.
- `TOKEN`: Your bot's token
- `PREFIX`: Your bot's prefix
- `OWNER`: The ID of the owner
- `ADMINS`: A comma-separated (with a space) list of bot admin IDs
- `SUPPORT`: A comma-separated (with a space) list of bot support IDs
- `WOLFRAM_API_KEY`: Used for `commands/utility/calc`
- `DEV`: Enables dev mode as long as it isn't a falsy value (`DEV=1` works for example)
# Utility Functions
## [src/lib](../src/lib.ts) - General utility functions

View file

@ -52,7 +52,7 @@ Rather than have an `events` folder which contains dynamically loaded events, yo
```ts
import {client} from "..";
client.on("message", (message) => {
client.on("messageCreate", (message) => {
//...
});
```