Update Invitarr-docker.py
This commit is contained in:
@@ -104,6 +104,17 @@ class MyClient(discord.Client):
|
|||||||
if message.author.id == self.user.id:
|
if message.author.id == self.user.id:
|
||||||
return
|
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 str(message.channel) == str(secure):
|
||||||
if message.content.startswith('-plexadd'):
|
if message.content.startswith('-plexadd'):
|
||||||
mgs = message.content.replace('-plexadd ','')
|
mgs = message.content.replace('-plexadd ','')
|
||||||
|
|||||||
Reference in New Issue
Block a user