From 7b98566622e79ff19d6181c0a7065e19b94d8552 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Tue, 23 Jun 2020 18:45:15 +0200 Subject: added sky to utils --- cogs/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/utils.py b/cogs/utils.py index f0e3572..057d7d9 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -130,12 +130,13 @@ class Utils(commands.Cog): ['Kai', self.bot.get_user(199070670221475842), datetime.date(2020, 11, 20)], ['Luca', self.bot.get_user(99457716614885376), datetime.date(2020, 11, 5)], ['Max', self.bot.get_user(543958509243596800), datetime.date(2020, 11, 10)], - ['Mistaken', self.bot.get_user(264121998173536256), datetime.date(2020, 7, 6)], + ['Mistaken', self.bot.get_user(264121998173536256), datetime.date(2020, 7, 6)], ['Murray', self.bot.get_user(400344183333847060), datetime.date(2020, 11, 10)], # idk if she goes by her irl name but I'm sticking with it for the sake of uniformity # also idk how to pronounce prakxo - ['Samantha', self.bot.get_user(226312219787264000), datetime.date(2020, 6, 25)], + ['Samantha', self.bot.get_user(226312219787264000), datetime.date(2020, 6, 24)], ['Scott', self.bot.get_user(223937483774230528), datetime.date(2020, 6, 23)], + ['Sky', self.bot.get_user(329538915805691905), datetime.date(2020, 6, 24)], ['Thomas', self.bot.get_user(280428276810383370), datetime.date(2020, 9, 29)] ] -- cgit v1.2.3 From 3c6471ad50372df8de50f19f7ff67676149dfd9f Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Tue, 23 Jun 2020 18:53:14 +0200 Subject: i dont remember what I did to this file but apparantly its not the same --- cogs/utils.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cogs/utils.py b/cogs/utils.py index 057d7d9..f45a5e7 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -141,29 +141,6 @@ class Utils(commands.Cog): ] - # Luca plz dont remove the bottom code (just incase the new code doesnt work, - # and also for me to laugh at how bad my code is) - - # brb while I write ugly and inefficient code in my - # conquest to make Steve the Bot bloated and unworkable - - #if datetime.date.today() == datetime.date(2020, 6, 23): - # await scott.send('Happy Birthday Scott. You\'re a boomer now! :mango:') - #elif datetime.date.today() == datetime.date(2020, 6, 25): - # await samantha.send('Happy Birthday Prakxo. You\'re a boomer now! :mango:') - #elif datetime.date.today() == datetime.date(2020, 5, 28): - # await thomas.send('Testy Test :mango:') - #elif datetime.date.today() == datetime.date(2020, 9, 29): - # await thomas.send('Now you know how the others felt :mango:') - #elif datetime.date.today() == datetime.date(2020, 10, 8): - # await cameron.send('Happy Birthday Cameron. You\'re a boomer now! :mango:') - #elif datetime.date.today() == datetime.date(2020, 11, 10): - # await murray.send('Happy Birthday Murray. You\'re a boomer now! :mango:') - #elif datetime.date.today() == datetime.date(2020, 9, 10): - # await indy.send('Happy Birthday Indy. You\'re a boomer now! :mango:) - - # Ignore the above message. I got sick and tired of looking at trash code - for coolKid in coolKids: if datetime.date.today() == coolKid[2]: try: -- cgit v1.2.3 From fafb376f68d00ef9021ab62670697065833f68df Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Wed, 24 Jun 2020 09:25:38 +0200 Subject: Update utils.py --- cogs/utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cogs/utils.py b/cogs/utils.py index f45a5e7..90498e6 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -143,12 +143,7 @@ class Utils(commands.Cog): for coolKid in coolKids: if datetime.date.today() == coolKid[2]: - try: - for i in range(self.tries): - await coolKid[1].send(f'Happy Birthday {coolKid[0]}! You\'re a boomer now! :mango:') - self.tries = 1 - except: - self.tries +=1 + await coolKid[1].send(f'Happy Birthday {coolKid[0]}! You\'re a boomer now! :mango:') for word in badWords: if word in message.content.lower(): -- cgit v1.2.3 From d6003027fdee8ff2cfa13c6bb90cc2dd627ef7ea Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Wed, 24 Jun 2020 09:29:19 +0200 Subject: Update utils.py --- cogs/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cogs/utils.py b/cogs/utils.py index 90498e6..f45a5e7 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -143,7 +143,12 @@ class Utils(commands.Cog): for coolKid in coolKids: if datetime.date.today() == coolKid[2]: - await coolKid[1].send(f'Happy Birthday {coolKid[0]}! You\'re a boomer now! :mango:') + try: + for i in range(self.tries): + await coolKid[1].send(f'Happy Birthday {coolKid[0]}! You\'re a boomer now! :mango:') + self.tries = 1 + except: + self.tries +=1 for word in badWords: if word in message.content.lower(): -- cgit v1.2.3