Skip to content

Commit

Permalink
feat: added new events!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Oct 16, 2024
1 parent e46e31f commit 84e3344
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
Expand Down
2 changes: 2 additions & 0 deletions tc_messageBroker/rabbit_mq/event/event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .events_microservice import (
DiscordAnalyzerEvent,
DiscordBotEvent,
DiscordHivemindAdapterEvent,
HivemindEvent,
ServerEvent,
TwitterAnalyzerEvent,
Expand All @@ -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
8 changes: 6 additions & 2 deletions tc_messageBroker/rabbit_mq/event/events_microservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 84e3344

Please sign in to comment.