Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Use Discord bot to avoid duplicate daily messages #1

Open
ghost opened this issue Aug 20, 2021 · 0 comments
Open

Use Discord bot to avoid duplicate daily messages #1

ghost opened this issue Aug 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Aug 20, 2021

At the moment the app uses a webhook to post the messages. This leads to lots of spam if a given country's stats change multiple times daily.

Screenshot_20210821-075035_Discord

I want to use a Discord bot to post messages instead, and edit them when that day's stats change. This requires a few things, off the top of my head:

  • Integrating with a custom bot that allows posting and editing posts
  • Saving post IDs in the JSON database
  • Refactoring "postToDiscord" to check if an ID exists for a given date, and modify the message if so
  • Add mechanism to save message ID to the JSON database
@ghost ghost added the enhancement New feature or request label Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants