whoops joining too fast
This commit is contained in:
parent
4103f9fbdf
commit
9f1e5328c8
3 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -41,7 +41,7 @@ async def joins(self, chan, source, msg):
|
||||||
self.t = time.time() + 2
|
self.t = time.time() + 2
|
||||||
try:
|
try:
|
||||||
await self.join(i['name'])
|
await self.join(i['name'])
|
||||||
await asyncio.sleep(0.5)
|
await asyncio.sleep(2)
|
||||||
print('joined {}'.format(i['name']))
|
print('joined {}'.format(i['name']))
|
||||||
except pydle.client.AlreadyInChannel:
|
except pydle.client.AlreadyInChannel:
|
||||||
print('I am already in {}'.format(i['name']))
|
print('I am already in {}'.format(i['name']))
|
||||||
|
|
|
@ -69,7 +69,7 @@ async def genOut(self, noun):
|
||||||
|
|
||||||
|
|
||||||
async def filter(self, c, n, m):
|
async def filter(self, c, n, m):
|
||||||
if c in self.qtime and self.qtime[c] > time.time():
|
if self.t > time.time() or c in self.qtime and self.qtime[c] > time.time():
|
||||||
return
|
return
|
||||||
if m[:len(self.prefix)] == self.prefix:
|
if m[:len(self.prefix)] == self.prefix:
|
||||||
m = m[len(self.prefix):]
|
m = m[len(self.prefix):]
|
||||||
|
|
Loading…
Reference in a new issue