whoops joining too fast

This commit is contained in:
xfnw 2020-07-12 12:28:32 +00:00
parent 4103f9fbdf
commit 9f1e5328c8
3 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ async def joins(self, chan, source, msg):
self.t = time.time() + 2
try:
await self.join(i['name'])
await asyncio.sleep(0.5)
await asyncio.sleep(2)
print('joined {}'.format(i['name']))
except pydle.client.AlreadyInChannel:
print('I am already in {}'.format(i['name']))

View file

@ -69,7 +69,7 @@ async def genOut(self, noun):
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
if m[:len(self.prefix)] == self.prefix:
m = m[len(self.prefix):]