2020-07-15 23:25:05 +00:00
|
|
|
import time
|
|
|
|
|
2020-07-15 23:24:09 +00:00
|
|
|
async def invite(self, channel, by):
|
|
|
|
if self.db['invite'].find_one(enabled='true'):
|
|
|
|
if self.db['invite'].find_one(blacklist=channel):
|
|
|
|
print('{} invited me to {}, a blacklisted channel'.format(by,channel))
|
|
|
|
return
|
|
|
|
print('{} invited me to {}!'.format(by, channel))
|
|
|
|
self.t = time.time()+1
|
|
|
|
await self.join(channel)
|
2020-07-15 23:25:05 +00:00
|
|
|
else:
|
|
|
|
print('ive been invited but invites are disabled')
|
2020-07-15 23:24:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
async def init(self):
|
|
|
|
pass
|
|
|
|
|