generic-command-processor: add easter eggs and make the module case-insensitive

This commit is contained in:
dymik739 2023-10-09 23:10:03 +03:00
parent 376ffd4957
commit 7d0d816ca8
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
{ {
"s": "Головна сторінка сервера: http://10.1.1.1:12010/" "s": "Головна сторінка сервера: http://10.1.1.1:12010/",
"пари_для_артема": "🧐",
"пари_для_артема_хоч_іеаавтра": "🤨"
} }

View File

@ -2,5 +2,5 @@ command_storage = json.loads(open(self.path + "data.json").read())
received_command = self.MESSAGE.text[1:] received_command = self.MESSAGE.text[1:]
if received_command in command_storage: if received_command.lower() in command_storage:
self.RESPONSE = command_storage[received_command] self.RESPONSE = command_storage[received_command.lower()]