2019-11-01 22:54:25 +00:00
|
|
|
# Python imports
|
|
|
|
|
2023-03-12 03:10:29 +00:00
|
|
|
# Lib imports
|
|
|
|
|
|
|
|
# Apoplication imports
|
|
|
|
|
2019-11-01 22:54:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MessageHandler:
|
|
|
|
def __init__(self):
|
|
|
|
print("MessageHandler initialized...")
|
|
|
|
|
|
|
|
|
2022-06-14 02:58:05 +00:00
|
|
|
def create_JSON_message(self, type, text):
|
2019-11-01 22:54:25 +00:00
|
|
|
return '{"message": { "type": "' + type + '", "text": "' + text + '" } }'
|