mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-19 12:53:56 +02:00
Add say command
This commit is contained in:
parent
6e6fbfa591
commit
5eb1389a6f
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue