From 0f43c65f10bffbb7d9e576dd8e9e6f9df5255f5a Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Jul 2020 21:47:02 -0700 Subject: fix ugycat react method and make its simpliter accidentaly --- src/bot.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/bot.ts') diff --git a/src/bot.ts b/src/bot.ts index 7c7e5a6..664bd7d 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -196,15 +196,8 @@ client.on('message', async msg => { } if (msg.guild?.id == '663964105983393793') { - let variations = [ - "ugycat", - "ugy", - "ugly", - "uglycat", - "uglycatdrool", - "ugycatdrool" - ] - if (variations.includes(msg.content.toLowerCase())) msg.react('733301856054280253') + if (msg.content.toLowerCase().includes('ugy') || msg.content.toLowerCase().includes('ugly')) + msg.react('733301856054280253') } }); -- cgit v1.2.3