mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 01:05:30 +01:00
Add say command
This commit is contained in:
parent
6e6fbfa591
commit
5eb1389a6f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue