new nick lol
This commit is contained in:
parent
ae2b0bc01e
commit
1b62714fd7
3 changed files with 7 additions and 3 deletions
2
bot.py
2
bot.py
|
@ -72,7 +72,7 @@ class Oven(pydle.Client):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
client = Oven('kim', realname='Kim Jong Un?')
|
client = Oven('kim', realname='Kim Jong Un?')
|
||||||
client.admins = ['lickthecheese', 'ben', 'cmccabe', 'gbmor', 'tomasino', 'ubergeek', 'deepend', 'calamitous', 'brendo', 'khuxkm']
|
client.admins = ['lickthecheese', 'ben', 'cmccabe', 'gbmor', 'tomasino', 'ubergeek', 'deepend', 'calamitous', 'brendo', 'khuxkm','lick']
|
||||||
client.prefix = 'kim: '
|
client.prefix = 'kim: '
|
||||||
client.run('team.tilde.chat', tls=True, tls_verify=False)
|
client.run('team.tilde.chat', tls=True, tls_verify=False)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -63,7 +63,9 @@ async def filter(self, c, n, m):
|
||||||
await go(self, c, n, m)
|
await go(self, c, n, m)
|
||||||
else:
|
else:
|
||||||
if len(m.split(' ')) > 1:
|
if len(m.split(' ')) > 1:
|
||||||
await rec(self, m)
|
if self.learntime + self.learndelay > time.time():
|
||||||
|
await rec(self, m)
|
||||||
|
self.learntime = time.time()
|
||||||
|
|
||||||
async def go(self, c, n, m):
|
async def go(self, c, n, m):
|
||||||
await rec(self, m)
|
await rec(self, m)
|
||||||
|
@ -77,6 +79,8 @@ async def init(self):
|
||||||
|
|
||||||
self.qtime = {}
|
self.qtime = {}
|
||||||
|
|
||||||
self.enmul = 1
|
self.learntime = 0
|
||||||
|
self.learndelay = 2
|
||||||
|
self.enmul = 25
|
||||||
self.raw['nlp'] = filter
|
self.raw['nlp'] = filter
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue