aussig / BGS-Tally

A tool to track and report your Background Simulation (BGS) and Thargoid War (TW) activity in Elite Dangerous, implemented as an EDMC plugin. BGS Tally counts all the work you do for any faction, in any system.
https://discord.gg/YDNVtjPnnm
MIT License
32 stars 10 forks source link

Fully Automatic posting to Discord #61

Open aussig opened 2 years ago

aussig commented 2 years ago

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.

WilliambWattKin commented 1 year ago

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"..?

aussig commented 1 year ago

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.