Fix presence updating without restarting bot

Use a discord collection instead of reading from a config file
This commit is contained in:
SileNce5k 2021-08-30 13:34:46 +02:00
parent 32862a825f
commit d91b2c748c
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
4 changed files with 13 additions and 7 deletions

View file

@ -11,13 +11,19 @@ const {
loginMessage,
loginChannel,
enableLoginMessage,
owners
owners,
presenceType,
presenceText
} = require('./data/config.json');
client.settings = new Discord.Collection();
client.commands = new Discord.Collection();
client.serverPrefixes = new Discord.Collection();
client.netmodules = new Discord.Collection();
client.settings.set("presenceType", presenceType);
client.settings.set("presenceText", presenceText);
const reloadCommands = require("./util/reloadCommands.js");
const reloadNetModules = require('./util/reloadNetModules');
const onMessage = require('./server/message');