Fix presence updating without restarting bot
Use a discord collection instead of reading from a config file
This commit is contained in:
parent
32862a825f
commit
d91b2c748c
4 changed files with 13 additions and 7 deletions
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue