From 1a17444821abb9f039d7e41f6edb00254fcd604a Mon Sep 17 00:00:00 2001 From: Baerbel Box Date: Sun, 1 Dec 2024 12:59:04 +0100 Subject: [PATCH] Removed Confirmation of deleting score in Hangman --- FaustBot/Modules/HangmanObserver.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/FaustBot/Modules/HangmanObserver.py b/FaustBot/Modules/HangmanObserver.py index ece764b..7c90ece 100644 --- a/FaustBot/Modules/HangmanObserver.py +++ b/FaustBot/Modules/HangmanObserver.py @@ -63,8 +63,6 @@ class HangmanObserver(PrivMsgObserverPrototype): if messageLower.startswith('.look'): self.look(data, connection) if messageLower.startswith('.resetscore') and len(data['message'].split(' ')) < 2: - self.confirm_reset(data, connection) - if messageLower == '.resetscore ' + data['nick'] + ' JA': self.reset(data, connection) if messageLower.startswith('.handelete '): self.delete_HanWord(data, connection) @@ -83,14 +81,9 @@ class HangmanObserver(PrivMsgObserverPrototype): score_provider.delete_score(data['nick']) connection.send_back("Dein Score wurde gelöscht, "+data['nick'], data) - def confirm_reset(self, data, connection): - connection.send_back('Möchtest du deinen Hangman Punktestand wirklich löschen, ' + data['nick'] + '? ' + - 'Wenn ja, antworte bitte mit ".resetscore deinnick JA". Wenn nein, musst du nichts tun.', data) - print(data['message']) - def look(self,data, connection): if self.worder != '': - connection.send_channel("Das Wort kommt von: "+self.worder ) + connection.send_channel("Das Wort kommt von: "+self.worder) connection.send_channel(self.prepare_word(data)) self.hint(data,connection)