stricter invite ignoring
This commit is contained in:
parent
789d09d88f
commit
00aabe2634
1 changed files with 6 additions and 3 deletions
|
@ -1,10 +1,13 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
async def invite(self, channel, by):
|
async def invite(self, channel, by):
|
||||||
if self.db['invite'].find_one(enabled='true'):
|
|
||||||
if self.db['invite'].find_one(blacklist=channel):
|
if self.db['invite'].find_one(blacklist=channel):
|
||||||
print('{} invited me to {}, a blacklisted channel'.format(by,channel))
|
print('{} invited me to {}, a blacklisted channel'.format(by,channel))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.db['invite'].find_one(enabled='true'):
|
||||||
|
|
||||||
print('{} invited me to {}!'.format(by, channel))
|
print('{} invited me to {}!'.format(by, channel))
|
||||||
self.t = time.time()+1
|
self.t = time.time()+1
|
||||||
await self.join(channel)
|
await self.join(channel)
|
||||||
|
|
Loading…
Reference in a new issue