diff --git a/bot.py b/bot.py index 8c3943d..da2b978 100755 --- a/bot.py +++ b/bot.py @@ -72,7 +72,7 @@ class Oven(pydle.Client): if __name__ == "__main__": 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.run('team.tilde.chat', tls=True, tls_verify=False) diff --git a/modules/__pycache__/nlp.cpython-36.pyc b/modules/__pycache__/nlp.cpython-36.pyc index 487538b..8f37225 100644 Binary files a/modules/__pycache__/nlp.cpython-36.pyc and b/modules/__pycache__/nlp.cpython-36.pyc differ diff --git a/modules/nlp.py b/modules/nlp.py index d9fe005..f9ab7c9 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -63,7 +63,9 @@ async def filter(self, c, n, m): await go(self, c, n, m) else: 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): await rec(self, m) @@ -77,6 +79,8 @@ async def init(self): self.qtime = {} - self.enmul = 1 + self.learntime = 0 + self.learndelay = 2 + self.enmul = 25 self.raw['nlp'] = filter