Fixed typo, the bot should now work.

This commit is contained in:
Tenkuma 2025-05-03 18:23:41 -03:00 committed by GitHub
commit fffb07b871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,16 +42,15 @@ client.on ('ready', () => {
}) })
// Get any message // Get any message
client.on('messageCreate', message => { client.on('messageCreate', message => {
if (message.author.bot) { if (message.author.bot) {
return; return;
} }
// Check if it's something you want to reply and replies // Check if it's something you want to reply and replies
if (message.content.toLowerCase().includes('theFirstWord') || message.content.toLowerCase().includes('theSecondWord') && message.content.toLowerCase().includes('fofa')) { if (message.content.toLowerCase().includes('theFirstWord') || (message.content.toLowerCase().includes('theSecondWord') && message.content.toLowerCase().includes('fofa'))) {
message.reply('^v-v^'); message.reply('^v-v^');
} }
});
// Get slash command // Get slash command
client.on(Events.InteractionCreate, async interaction => { client.on(Events.InteractionCreate, async interaction => {
@ -147,8 +146,8 @@ const activities_list = [
"Sono Que Eu Perdi (Demo) by YunLi", "Sono Que Eu Perdi (Demo) by YunLi",
"Acabou by YunLi", "Acabou by YunLi",
"Saudades Eu Até Sinto (Demo) by YunLi", "Saudades Eu Até Sinto (Demo) by YunLi",
"Dói Demais (Demo) by YunLi",
"Playback (Demo) by YunLi", "Playback (Demo) by YunLi",
"Playback by YunLi",
"Lista De Favoritos (Demo) by YunLi", "Lista De Favoritos (Demo) by YunLi",
"Sprinter Trueno by YunLi", "Sprinter Trueno by YunLi",
]; ];