Add say command

This commit is contained in:
Max Isom 2020-03-16 12:13:18 -05:00
parent 6e6fbfa591
commit 5eb1389a6f

View file

@ -45,6 +45,13 @@ export default class {
return this.client.emit('guildCreate', msg.guild); return this.client.emit('guildCreate', msg.guild);
} }
if (msg.content.startsWith('say') && msg.content.endsWith('muse')) {
const res = msg.content.slice(3, msg.content.indexOf('muse')).trim();
await msg.channel.send(res);
return;
}
const {prefix, channel} = settings; const {prefix, channel} = settings;
if (!msg.content.startsWith(prefix) || msg.author.bot || msg.channel.id !== channel) { if (!msg.content.startsWith(prefix) || msg.author.bot || msg.channel.id !== channel) {