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
|
@ -2,10 +2,8 @@ const setPresence = require('./setPresence')
|
|||
|
||||
module.exports = function (client) {
|
||||
const updatePresence = require('./updatePresence')
|
||||
let {
|
||||
presenceText,
|
||||
presenceType
|
||||
} = require('../data/config.json')
|
||||
let presenceText = client.settings.get("presenceText")
|
||||
let presenceType = client.settings.get("presenceType")
|
||||
|
||||
if(presenceText.includes("<guilds>") || presenceText.includes("<prefix>")){
|
||||
setPresence({presenceText: presenceText, presenceType: presenceType, client: client});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue