diff options
Diffstat (limited to 'cogs/utils.py')
-rwxr-xr-x | cogs/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
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(): |