Minor cleanup

This commit is contained in:
Izwzyzx 2024-10-27 11:23:12 -05:00
parent 1ec9c93bda
commit 7162eb7d93
3 changed files with 25 additions and 21 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# ignore all files in export dir # ignore all files in export dir
export/ export/
modules/ modules/
releases/
# ignore bot settings file # ignore bot settings file
settings.json settings.json

View File

@ -98,7 +98,8 @@ class Onequestionmark {
/** /**
* The `onMessageCreate()` event provides the bulk of onequestionmark's functionality. This is what triggers when a new Discord message is received, and contains the bot's command processor. * The `onMessageCreate()` event provides the bulk of onequestionmark's functionality.
* This is what triggers when a new Discord message is received, and contains the bot's command processor.
*/ */
public static function onMessageCreate(m:Message) { public static function onMessageCreate(m:Message) {
// DevMode check // DevMode check
@ -345,7 +346,8 @@ class Onequestionmark {
/** /**
* This function starts the "Meme of the Day" system. A temporary timer is set that counts down to the next MOTD event, at which point the main timer is started on a 24 hour loop. * This function starts the "Meme of the Day" system.
* A temporary timer is set that counts down to the next MOTD event, at which point the main timer is started on a 24 hour loop.
*/ */
public static function startMotd() { public static function startMotd() {
var now = Date.now(); var now = Date.now();
@ -379,7 +381,8 @@ class Onequestionmark {
/** /**
* Sends the MOTD to the channels specified in the bot settings. May just move this code into the places it's needed instead of keeping this function. * Sends the MOTD to the channels specified in the bot settings.
* May just move this code into the places it's needed instead of keeping this function.
*/ */
public static function postMotd() { public static function postMotd() {
var msg = getMotd(); var msg = getMotd();

View File

@ -59,4 +59,4 @@ onequestionmark is designed and tested to run in [NekoVM](https://nekovm.org/dow
`onequestionmark.n` should be placed in the same directory as its JSON files. `onequestionmark.n` should be placed in the same directory as its JSON files.
It is preferable to stop the bot via its own `?stop` command in Discord, so it can save its settings file before exiting. It is preferable to stop the bot via its own `?quit` command in Discord, so it can save its settings file before exiting.