BGS-Tally icon indicating copy to clipboard operation
BGS-Tally copied to clipboard

Fully Automatic posting to Discord

Open aussig opened this issue 3 years ago • 2 comments

Add an option (default to OFF) to automatically post your activity to discord.

To avoid being throttled or banned by Discord (the Discord webhook rate limit is 30 msg / minute, which is totalled across all users), this should not be done every time the user does any BGS activity. There are a couple of solutions:

  1. It could be throttled client-side, posting e.g. every 5 minutes or so as a background task.
  2. It could be throttled server-side, by requiring a Discord bot to be installed by the Discord server admin, and BGST would communicate with the bot.

Preference is 1 as this is simpler for both BGST development and also for Discord integration.

aussig avatar Oct 19 '22 17:10 aussig

If even perhaps fully automating the push to discord is not decided for, could maybe set a options check box to one button push to discord by clicking the "Latest BGS Tally" bypassing the discord preview pop up window, acting as if the post to discord button was pressed immediately. Having the box unchecked would allow a "Latest BGS Tally" activation that brings up the pop up, choosing the options offered, sending. Then can go ahead and set the one button push option check box so it just sends to discord right from "Latest BGS Tally"..?

WilliambWattKin avatar Apr 12 '23 23:04 WilliambWattKin

Although a 'one click press' is a neat idea, the checkbox to enable / disable that feature would also have to be on the main EDMC window, so that users can access the preview popup window quickly if they need, without digging around in the plugin configuration page. However, over the last few releases I have been trying to make an effort to simplify the main EDMC window and this would be a bit of a backward step.

So, I still favour leaving the UI as it is, and adding auto-posting on a regular interval instead. I'm thinking 5 minutes should be good for this.

aussig avatar Apr 13 '23 07:04 aussig

bumping this as I assumed when I saw discord webhooks that it was an automated system

TheKrush avatar Jul 31 '25 18:07 TheKrush