2023-10-01 22:34:39 +03:00
|
|
|
command_storage = json.loads(open(self.path + "data.json").read())
|
|
|
|
|
|
|
|
received_command = self.MESSAGE.text[1:]
|
|
|
|
|
2023-10-09 23:10:03 +03:00
|
|
|
if received_command.lower() in command_storage:
|
|
|
|
self.RESPONSE = command_storage[received_command.lower()]
|