replace !

This commit is contained in:
biglyderv 2025-03-28 16:54:22 -04:00
parent 387019ab57
commit 66f167462a
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -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]) {