From 7113b9d6c7d25f55a58f9ad914d2302cb71175a0 Mon Sep 17 00:00:00 2001 From: BaerbelBox Date: Mon, 2 May 2022 11:04:06 +0200 Subject: [PATCH] Another change on identification --- FaustBot/Communication/Connection.py | 1 - FaustBot/Modules/HelpObserver.py | 1 - FaustBot/Modules/WordRunObserver.py | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/FaustBot/Communication/Connection.py b/FaustBot/Communication/Connection.py index 214995b..2598cf0 100644 --- a/FaustBot/Communication/Connection.py +++ b/FaustBot/Communication/Connection.py @@ -143,7 +143,6 @@ class Connection(object): self.irc.send("USER botty botty botty :Botty \n".encode()) if (self.details.get_pwd() != ''): self.send_to_user("NICKSERV", "identify " + self.details.get_nick() + " " + self.details.get_pwd() + ' ') - time.sleep(3) self.irc.send("JOIN ".encode() + self.details.get_channel().encode() + '\r\n'.encode()) self.irc.send("WHO ".encode() + self.details.get_channel().encode() + '\r\n'.encode()) self.irc.send("MODE ".encode()+self.details.get_nick().encode()+" -R".encode()+'\r\n'.encode()) diff --git a/FaustBot/Modules/HelpObserver.py b/FaustBot/Modules/HelpObserver.py index a5a5470..40aff26 100644 --- a/FaustBot/Modules/HelpObserver.py +++ b/FaustBot/Modules/HelpObserver.py @@ -1,4 +1,3 @@ -from types import NoneType from FaustBot.Communication import Connection from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype diff --git a/FaustBot/Modules/WordRunObserver.py b/FaustBot/Modules/WordRunObserver.py index 25fe502..f7d6e6f 100644 --- a/FaustBot/Modules/WordRunObserver.py +++ b/FaustBot/Modules/WordRunObserver.py @@ -28,11 +28,11 @@ class WordRunObserver(PrivMsgObserverPrototype): def update_on_priv_msg(self, data, connection: Connection): if data['message'].startswith('.a ') or data['message'].startswith('.add '): self.add(data, connection) - if data['message'].startswith('.begin '): + if data['message'].startswith('.begin '): self.begin_word(data, connection) - if data['message'].startswith('.end '): + if data['message'].startswith('.end '): self.end_word(data, connection) - if data['message'].startswith('.wordrun'): + if data['message'].startswith('.wordrun'): self.rules(data, connection) def add(self, data, connection):