Documentation
This commit is contained in:
parent
ae544369aa
commit
e678e696bd
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ package-lock.json
|
|||||||
.VSCodeCounter/
|
.VSCodeCounter/
|
||||||
env.dev
|
env.dev
|
||||||
env.prod
|
env.prod
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
# Custom folders
|
# Custom folders
|
||||||
# gifs/*
|
# gifs/*
|
||||||
|
34
README.md
34
README.md
@ -11,3 +11,37 @@ Add the bot to your server and make sure it has the proper permissions (`Send Me
|
|||||||
* `/setup` - Attempts automatic detection of your server's tree and leaderboard messages.
|
* `/setup` - Attempts automatic detection of your server's tree and leaderboard messages.
|
||||||
* `/setupinfo` - Displays your server's current configuration.
|
* `/setupinfo` - Displays your server's current configuration.
|
||||||
* `/reset` - Resets your server's configuration, run `/setup` again if needed.
|
* `/reset` - Resets your server's configuration, run `/setup` again if needed.
|
||||||
|
|
||||||
|
|
||||||
|
## Database Structure
|
||||||
|
|
||||||
|
### Table: guildinfo
|
||||||
|
```
|
||||||
|
+-----------------+-------------+------+-----+---------+----------------+
|
||||||
|
| Field | Type | Null | Key | Default | Extra |
|
||||||
|
+-----------------+-------------+------+-----+---------+----------------+
|
||||||
|
| id | int(10) | NO | PRI | NULL | auto_increment |
|
||||||
|
| guild_id | varchar(50) | NO | | NULL | |
|
||||||
|
| tree_message_id | varchar(50) | NO | | NULL | |
|
||||||
|
| tree_channel_id | varchar(50) | NO | | NULL | |
|
||||||
|
| rank_message_id | varchar(50) | NO | | NULL | |
|
||||||
|
| rank_channel_id | varchar(50) | NO | | NULL | |
|
||||||
|
| tree_height | varchar(10) | NO | | NULL | |
|
||||||
|
+-----------------+-------------+------+-----+---------+----------------+
|
||||||
|
```
|
||||||
|
### Table: treeinfo
|
||||||
|
```
|
||||||
|
+-----------+--------------+------+-----+---------+----------------+
|
||||||
|
| Field | Type | Null | Key | Default | Extra |
|
||||||
|
+-----------+--------------+------+-----+---------+----------------+
|
||||||
|
| id | int(10) | NO | PRI | NULL | auto_increment |
|
||||||
|
| treename | varchar(100) | NO | | NULL | |
|
||||||
|
| treerank | int(10) | NO | | NULL | |
|
||||||
|
| timestamp | varchar(50) | NO | | NULL | |
|
||||||
|
+-----------+--------------+------+-----+---------+----------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
## Changes to Implement
|
||||||
|
|
||||||
|
* Move around some of the functions.
|
||||||
|
* Migrate storage to SQLite.
|
Loading…
Reference in New Issue
Block a user