diff --git a/XiaoBot.js b/XiaoBot.js index cd475dd2..5ddf8a84 100644 --- a/XiaoBot.js +++ b/XiaoBot.js @@ -7,7 +7,7 @@ const client = new Client({ invite: INVITE, disableEveryone: true, unknownCommandResponse: false, - disabledEvents: ['TYPING_START'], + disabledEvents: ['TYPING_START', 'PRESENCE_UPDATE'], messageCacheLifetime: 600, messageSweepInterval: 120 }); diff --git a/commands/user-info/user-info.js b/commands/user-info/user-info.js index 35e5aeaa..9552d040 100644 --- a/commands/user-info/user-info.js +++ b/commands/user-info/user-info.js @@ -1,11 +1,5 @@ const Command = require('../../structures/Command'); const { MessageEmbed } = require('discord.js'); -const statuses = { - online: '<:online:313956277808005120> Online', - idle: '<:away:313956277220802560> Idle', - dnd: '<:dnd:313956276893646850> Do Not Disturb', - offline: '<:offline:313956277237710868> Offline' -}; module.exports = class UserInfoCommand extends Command { constructor(client) { @@ -43,8 +37,8 @@ module.exports = class UserInfoCommand extends Command { member.joinedAt.toDateString(), true) .addField('❯ Nickname', member.nickname || 'None', true) - .addField('❯ Status', - statuses[member.presence.status], true) + .addField('❯ Bot?', + member.user.bot ? 'Yes' : 'No', true) .addField('❯ Highest Role', member.highestRole.name !== '@everyone' ? member.highestRole.name : 'None', true) .addField('❯ Hoist Role', diff --git a/package.json b/package.json index 5644586c..04cca2e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "42.5.0", + "version": "42.5.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {