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 ++--------- src/config.json | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'src') 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') } }); diff --git a/src/config.json b/src/config.json index b9cbe1f..85b4d79 100644 --- a/src/config.json +++ b/src/config.json @@ -2,7 +2,7 @@ "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "secret-dev":"NzEyMDg4MzY5MjA2OTE5MjY5.XsMeEw.Yy0a8m2vZLDbPi7cZ8aqCalMR68", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.35", + "version":"1.10.36", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a", "mongodburi": "mongodb://sin:cSDZEygGZz232eJ5bS@ds047107.mlab.com:47107/heroku_4qrjvmb9", "validUsers": [ -- cgit v1.2.3