Update Invitarr-docker.py
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user