cleaned up anagram.js, combined module exports.

This commit is contained in:
2019-03-18 06:23:27 +11:00
parent 7d11f13e30
commit 467dc136ff
22 changed files with 513 additions and 496 deletions

View File

@@ -1,18 +1,20 @@
exports.name = "Emote Page Test"
exports.alias = ['emotetest']
exports.helptext = "testing for emote responses"
exports.helphide = true;
exports.command = (client, msg) => {
module.exports = {
name = "Emote Page Test",
alias =['emotetest'],
helptext = "testing for emote responses",
helphide = true;,
command = (client, msg) => {
msg.reply ("testing emote thing")
.then(sent => {
sent.react('555213405217226776').then(
() => message.react('555213429200388116'));
const filter = (reaction, user) => user.id === msg.member.user.id
msg.reply("testing emote thing")
.then(sent => {
sent.react('555213405217226776').then(
() => message.react('555213429200388116'));
const filter = (reaction, user) => user.id === msg.member.user.id
sent.awaitReactions(filter)
.then(collected => console.log(`Collected ${collected.size} reactions`))
.catch(console.error);
})
return true;
sent.awaitReactions(filter)
.then(collected => console.log(`Collected ${collected.size} reactions`))
.catch(console.error);
})
return true;
}
}