This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+5 -13
View File
@@ -23,20 +23,12 @@ module.exports = class WebhookCommand extends Command {
});
}
hasPermission(msg) {
return this.client.isOwner(msg.author);
}
async run(msg, args) {
const { content } = args;
try {
msg.delete();
await snekfetch
.post(WEBHOOK_URL)
.send({ content });
return null;
} catch (err) {
return msg.say(`${err.name}: ${err.message}`);
}
msg.delete();
await snekfetch
.post(WEBHOOK_URL)
.send({ content });
return null;
}
};