Skip to content
This repository was archived by the owner on Nov 19, 2017. It is now read-only.

Commit 6f3e3da

Browse files
committed
Remove reputation and star commands
1 parent a23bd6e commit 6f3e3da

File tree

8 files changed

+0
-347
lines changed

8 files changed

+0
-347
lines changed

Commando.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,6 @@ client.on('error', winston.error)
9797
}, 60 * 1000);
9898
}
9999
})
100-
.on('messageReactionAdd', async (reaction, user) => {
101-
const blacklist = client.provider.get('global', 'userBlacklist', []);
102-
if (blacklist.includes(user.id)) return;
103-
104-
if (reaction.emoji.name !== '⭐') return;
105-
const { message } = reaction;
106-
const starboard = message.guild.channels.find('name', 'starboard');
107-
if (!starboard) return message.channel.send(`${user}, can't star things without a #starboard...`); // eslint-disable-line consistent-return, max-len
108-
const isAuthor = await Starboard.isAuthor(message.id, user.id);
109-
if (isAuthor || message.author.id === user.id) return message.channel.send(`${user}, you can't star your own messages.`); // eslint-disable-line consistent-return, max-len
110-
const hasStarred = await Starboard.hasStarred(message.id, user.id);
111-
if (hasStarred) return; // eslint-disable-line consistent-return
112-
const isStarred = await Starboard.isStarred(message.id);
113-
if (isStarred) return Starboard.addStar(message, starboard, user.id); // eslint-disable-line consistent-return
114-
else Starboard.createStar(message, starboard, user.id);
115-
})
116100
.on('commandError', (cmd, err) => {
117101
if (err instanceof FriendlyError) return;
118102
winston.error(`[DISCORD]: Error in command ${cmd.groupID}:${cmd.memberName}`, err);
@@ -159,8 +143,6 @@ client.registry
159143
['weather', 'Weather'],
160144
['music', 'Music'],
161145
['tags', 'Tags'],
162-
['stars', 'Stars'],
163-
['rep', 'Reputation'],
164146
['docs', 'Documentation']
165147
])
166148
.registerDefaults()

commands/rep/negative.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

commands/rep/positive.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

commands/rep/show.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

commands/stars/delete.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

commands/stars/info.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

commands/stars/star.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

commands/stars/unstar.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)