FM-17 / poglink

A bot that integrates the ARK Web API with Discord.
MIT License
12 stars 4 forks source link

Allow `rates_channel_id` to be divided by game mode #48

Open FM-17 opened 2 years ago

FM-17 commented 2 years ago

Currently all rates_urls will send embeds to a single channel, defined by rates_channel_id

There has been a request to allow each "game mode" to have its own Rates channel.

This will allow users to "follow" the channel pertaining to their preferred game mode, rather than receiving updates for all modes.

It would be ideal if this could be optional, and disabled by default.

travipross commented 2 years ago

This could be accomplished by having the config options for rates_channel_id and rates_url be supplied as an array of pairs.

Then in the main rates cog, one could iterate over each pair in the main loop, handling independently. Because everything is asynchronous anyway this should probably be sufficient, but one could also spawn off multiple threads for each of these loops to take place within.