added notifiyers

This commit is contained in:
Sleepingpirates
2020-06-12 16:16:50 +00:00
committed by repl.it user
parent 7830d8b12c
commit bd8e5e87a9

View File

@@ -95,6 +95,8 @@ class MyClient(discord.Client):
deleted = db.delete_user(user_id)
if deleted:
print("Removed {} from db".format(email))
secure = client.get_channel(chan)
await secure.send(plexname + ' ' + after.mention + ' was removed from plex')
else:
print("Cannot remove this user from db.")
except:
@@ -118,6 +120,8 @@ class MyClient(discord.Client):
user_id = user_id.replace(i, '')
db.save_user(user_id, email)
await message.channel.send('The user has been added to db!')
secure = client.get_channel(chan)
await secure.send(email + ' ' + msg[1] + ' was added to plex')
except:
await message.channel.send('Cannot add this user to db.')
print("Cannot add this user to db.")
@@ -148,6 +152,8 @@ class MyClient(discord.Client):
deleted = db.delete_user(user_id)
if deleted:
print("Removed {} from db".format(email))
secure = client.get_channel(chan)
await secure.send(email + ' ' + member.mention + 'was removed from plex because they left the server')
else:
print("Cannot remove this user from db.")
except: