Skip to content

Custom Commands for Different Streamers #424

Discussion options

You must be logged in to vote

Firstly, do not use mysql.connector as it is not async and can block the event loop / bot.

Second using an async lib like aiomysql (although postgres is a superior database) should allow up to return commands with a DictCursor negating the need to load into json.

Third you would have to constantly check every message in event_message for the prefix and the key in your dict for which would be a nested key to the streamer name.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NavisGames
Comment options

@chillymosh
Comment options

Answer selected by NavisGames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants