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

@ -24,7 +24,7 @@ module.exports = {
let temp = args.join(" ");
let presenceText = temp.slice(firstArg, temp.length)
setPresence({presenceText: presenceText,presenceType: presenceType, client: client, globalPrefix: globalPrefix});
savePresence(presenceType, presenceText);
savePresence(presenceType, presenceText, client);
message.channel.send("Updated presence.")
}