diff --git a/setup.py b/setup.py index 92a7a8b..0d9cd15 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="tc-messageBroker", - version="1.7.0", + version="1.7.1", author="Mohammad Amin Dadgar, RnDAO", maintainer="Mohammad Amin Dadgar", maintainer_email="dadgaramin96@gmail.com", diff --git a/tc_messageBroker/rabbit_mq/event/event.py b/tc_messageBroker/rabbit_mq/event/event.py index 5cb0be4..458745d 100644 --- a/tc_messageBroker/rabbit_mq/event/event.py +++ b/tc_messageBroker/rabbit_mq/event/event.py @@ -1,6 +1,7 @@ from .events_microservice import ( DiscordAnalyzerEvent, DiscordBotEvent, + DiscordHivemindAdapterEvent, HivemindEvent, ServerEvent, TwitterAnalyzerEvent, @@ -12,6 +13,7 @@ class Event: SERVER_API = ServerEvent DISCORD_BOT = DiscordBotEvent DISCORD_ANALYZER = DiscordAnalyzerEvent + DISCORD_HIVEMIND_ADAPTER = DiscordHivemindAdapterEvent TWITTER_BOT = TwitterBotEvent TWITTER_ANALYZER = TwitterAnalyzerEvent HIVEMIND = HivemindEvent diff --git a/tc_messageBroker/rabbit_mq/event/events_microservice.py b/tc_messageBroker/rabbit_mq/event/events_microservice.py index 7733ac4..b2b0dec 100644 --- a/tc_messageBroker/rabbit_mq/event/events_microservice.py +++ b/tc_messageBroker/rabbit_mq/event/events_microservice.py @@ -52,10 +52,14 @@ class TwitterBotEvent: SEND_MESSAGE = "SEND_MESSAGE" +class DiscordHivemindAdapterEvent: + QUESTION_COMMAND_RECIVED = "QUESTION_COMMAND_RECEIVED" + QUESTION_RESPONSE_RECIVED = "QUESTION_RESPONSE_RECEIVED" + + class TwitterAnalyzerEvent: RUN = AnalyzerBaseEvent.RUN # RECOMPUTE class HivemindEvent: - INTERACTION_CREATED = "INTERACTION_CREATED" - GUILD_MESSAGES_UPDATED = "GUILD_MESSAGES_UPDATED" + QUESTION_RECIVED = "QUESTION_RECIVED"