replace !
This commit is contained in:
parent
387019ab57
commit
66f167462a
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -31,6 +31,10 @@ client.on(Events.MessageCreate, async interaction => {
|
|||
|
||||
if (channel.indexOf('play') == -1 && channel.indexOf('bot') && channel.indexOf('spam')) return;
|
||||
|
||||
if (msg.startsWith('!')) {
|
||||
msg = `/${msg.slice(1)}`;
|
||||
}
|
||||
|
||||
let id = interaction.author.id;
|
||||
|
||||
if (!sessions[id]) {
|
||||
|
|
Loading…
Reference in a new issue