Commit e7354e95 authored by George Peter Banyard's avatar George Peter Banyard

Use setActivity instead of deprecated setGame

parent 20e59d25
......@@ -416,8 +416,13 @@ DiscordBotClient.on('ready', () => {
if (!fs.existsSync(DB_DIR)){
fs.mkdirSync(DB_DIR);
}
sqlite.open('./' + DB_DIR + DB_FILE +'.sqlite').then(
() => DiscordBotClient.user.setGame(`#${config.channel} > ${PREFIX}help`)
sqlite.open('./' + DB_DIR + DB_FILE +'.sqlite'
).then(
() =>
DiscordBotClient.user.setActivity(
`#${config.channel} > ${PREFIX}help`,
{ type: 'WATCHING' }
)
).then(
() => console.info('I am ready!')
).catch(error => console.error(error));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment