Update Invitarr-docker.py

This commit is contained in:
Sleepingpirates
2020-06-10 13:24:04 -04:00
committed by GitHub
parent f6cdffae72
commit 05c8f0be11

View File

@@ -103,6 +103,17 @@ class MyClient(discord.Client):
secure = client.get_channel(chan)
if message.author.id == self.user.id:
return
if message.content.startswith('-dbadd'):
mgs = message.content.replace('-dbadd ','')
try:
mgs = mgs.split(' ')
email = mgs[0]
username = mgs[1].replace('@', '').split('#')[0]
db.save_user(username, email)
await message.channel.send('The user {} has been added to db!'.format(mgs[1]))
except:
print("Cannot add this user to db.")
if str(message.channel) == str(secure):
if message.content.startswith('-plexadd'):