works flawlessly, hehe

This commit is contained in:
Remy Moll
2020-10-19 12:27:59 +02:00
parent 341b2b6ece
commit 6c4dbacdef
7 changed files with 68 additions and 36 deletions

View File

@@ -19,6 +19,9 @@ class TelegramIO():
def update_commands(self,commands):
self.commands = commands
########################################################################
"""Helper-Functions"""
@@ -79,7 +82,7 @@ class TelegramIO():
/[command] [argument 1] [argument 2] ...
"""
full = command.split(" ")
command = self.fuzzy_match_command(full[0]) # ["EXACT",full[0]] #
command = self.fuzzy_match_command(full[0])
if len(command) != 1:
if command[0] == "EXACT":
self.persistence.increment("commands_executed")