mirror of https://xfnw.ttm.sh/git/oirc.git
predict the duccs
This commit is contained in:
parent
2cfd50085c
commit
685ee1e27c
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
async def pd(self,c,n,m):
|
||||
|
||||
if n in ['tildebot','BitBot','xfnw'] and m == '・゜゜・。。・゜゜\\_o< QUACK!':
|
||||
self.duckmsg[c] = 0
|
||||
print('duck in',c)
|
||||
elif c in self.duckmsg:
|
||||
self.duckmsg[c] += 1
|
||||
if self.duckmsg[c] == 200:
|
||||
await self.notice(self.ducknotif,'i predict there will be a duck in {} soon'.format(c))
|
||||
|
||||
async def init(self):
|
||||
self.raw['pd'] = pd
|
||||
self.ducknotif='xfnw'
|
||||
self.duckmsg = {}
|
Loading…
Reference in New Issue