Added status message

This commit is contained in:
Ådne E. Moldesæter 2019-12-30 19:57:54 +01:00
parent a67aca7363
commit f9d75b3531

7
bot.js
View File

@ -33,6 +33,11 @@ var bot = new Discord.Client({
bot.on('ready', function (evt) {
logger.info('Connected');
logger.info('Logged in as: ' + bot.username + ' - (' + bot.id + ')');
bot.setPresence({
game: {
name: 'with dice'
}
});
});
bot.on('message', function (user, userID, channelID, message, evt) {
@ -77,7 +82,7 @@ bot.on('message', function (user, userID, channelID, message, evt) {
}
});
function error(error, channelID){
function error(error, channelID) {
var res = "Sorry, something went wrong.";
sendMessage(channelID, res);