Add a Few Stragglers

This commit is contained in:
Daniel Odendahl Jr
2017-04-08 03:26:04 +00:00
parent f538f13de6
commit e88ec8362e
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ module.exports = class GuildInfoCommand extends commando.Command {
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
}
console.log(`[Command] ${message.content}`);
const embed = new Discord.RichEmbed()
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class NeopetCommand extends commando.Command {
run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
const petID = args.pet;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "21.0.0",
"version": "21.0.1",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"repository": {