Complete rewrite of the MOTD and Save System loops

This commit is contained in:
2024-10-18 23:49:35 -05:00
parent 8da2c94dcd
commit 7be7970194
3 changed files with 85 additions and 52 deletions

View File

@@ -14,8 +14,7 @@ A `settings.json` file is required to run the bot. An example is provided below:
"motd": {
"date": "",
"time": 8,
"channels": [],
"posted": true
"channels": []
},
"debug": false,
"devmode": false,
@@ -26,8 +25,8 @@ A `settings.json` file is required to run the bot. An example is provided below:
}
```
- onequestionmark will handle most of the `motd` values itself.
- `date` and `posted` are modified by the bot during normal operations.
- `time` determines the hour at which the MOTD is posted (8AM by default).
- `date` is modified by the bot during normal operations.
- `time` determines the hour at which the MOTD is posted (24-hour notation, local time).
- Using the `?motd` command adds the current channel to the `channels` array.
- `debug` determines whether HxDiscord's console debug messages are enabled.
- `devmode` restricts the bot's responses to the specified dev server.