From 4082705d59b545a3a6dc5da58ca820f01a43da83 Mon Sep 17 00:00:00 2001 From: xfnw Date: Mon, 12 Jul 2021 17:20:06 -0400 Subject: [PATCH] revoke messages from itself it was supposed to already do this, i guess not though lol @lumeyisnotyou --- bot.py | 2 ++ modules/nlp.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ad67009..1ab0f7b 100755 --- a/bot.py +++ b/bot.py @@ -85,6 +85,8 @@ class Server(BaseServer): nick = line.source.split('!')[0] msg = line.params[1] + if nick == self.nickname: + return if channel == self.nickname: channel = nick diff --git a/modules/nlp.py b/modules/nlp.py index f81c760..01a9443 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -110,7 +110,7 @@ async def init(self): # sentance ending weight, lower means longer sentances, # higher means shorter sentances. this will need to slowly # get larger as the database grows - shared.enmul = 6 + shared.enmul = 7 shared.rawm['nlp'] = filter