Carl
Carl

Reputation: 245

Issues with setGame

I'm trying to force my bot to change it's "Game" when it startes to "!help for help" but cannot seem to get it work.

Currently my code is...

const Commando = require('discord.js-commando');
const Request = require('request');
const Bot = new Commando.Client();

Bot.client.setGame("!help for help");

I've also tried...

Bot.client.setStatus("!help for help");
Bot.user.setGame("!help for help");
Bot.user.setStatus("!help for help");

I use can't seem to understand how you call to this to make it work.

Upvotes: 2

Views: 2328

Answers (2)

Pruina Tempestatis
Pruina Tempestatis

Reputation: 394

When checking if your client is ready, you can add in this little piece of code.

Client.user.setActivity(" your game here "):

Hope this helped!

Upvotes: 0

Eclipse
Eclipse

Reputation: 175

Try this:

bot.on('ready', () => {
  bot.user.setGame("use !help");
});

Upvotes: 6

Related Questions