Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic sending of a top #274

Open
12 tasks
LEv145 opened this issue May 13, 2022 · 8 comments
Open
12 tasks

Automatic sending of a top #274

LEv145 opened this issue May 13, 2022 · 8 comments
Labels
feature Introduce a new feature hacktoberfest prio: low size: medium More than 100 additions or deletions

Comments

@LEv145
Copy link

LEv145 commented May 13, 2022

Automatic publishing is convenient, it can make people help more and they will learn about the reputation system on a server

Top of week:
изображение

Maintainer edit
The general scope should be:

  • Add a command group to the channel command called autopost
    • Add a subcommand called enable
      • Enable defining a channel
      • Enable definition of an interval: daily, weekly, monthly
      • Enable definition of an timeframe for reputation: total, 7 days, 30 days (Equal to reputation modes)
    • Add a subcommand called disable
  • Add a scheduler which will daily check at midnight if posts need to be send.
    • Daily will be send every day at midnight
    • Weekly will be send on monday each week
    • Monthly will be send on the first of the month
  • Make sure that all commands are localised correctly.
  • Do not create new views. All the needed data exists already.
@Taucher2003 Taucher2003 added size: medium More than 100 additions or deletions feature Introduce a new feature prio: low labels May 13, 2022
@rainbowdashlabs
Copy link
Owner

Could you please specify:

  1. Where should this be posted?
  2. When should the be posted?
  3. Should this be in general refreshed at some time?

@rainbowdashlabs rainbowdashlabs added the question Further information is requested label May 16, 2022
@LEv145
Copy link
Author

LEv145 commented May 17, 2022

The idea is that it will be possible to set up automatic sending to a selected channel every week/month/other statistics for a week/month/other

/autopost [channel] [week/month/...] (**optional settings)

@rainbowdashlabs rainbowdashlabs removed the question Further information is requested label Jul 19, 2022
@kxmpxtxnt
Copy link
Contributor

kxmpxtxnt commented Sep 28, 2022

/autopost [channel] [week/month/...] (**optional settings)

is this still the whole plan?

@rainbowdashlabs
Copy link
Owner

@kxmpxtxnt
The general scope should be:

  • Add a command group to the channel command called autopost
    • Add a subcommand called enable
      • Enable defining a channel
      • Enable definition of an interval: daily, weekly, monthly
      • Enable definition of an timeframe for reputation: total, 7 days, 30 days (Equal to reputation modes)
    • Add a subcommand called disable
  • Add a scheduler which will daily check at midnight if posts need to be send.
    • Daily will be send every day at midnight
    • Weekly will be send on monday each week
    • Monthly will be send on the first of the month
  • Make sure that all commands are localised correctly.
  • Do not create new views. All the needed data exists already.

@kxmpxtxnt
Copy link
Contributor

Bruh im blind :)

@kxmpxtxnt
Copy link
Contributor

what should we do if the channel does not exist? just set autopost enabled to false or should the bot send some message or something

@rainbowdashlabs
Copy link
Owner

rainbowdashlabs commented Sep 28, 2022

what should we do if the channel does not exist? just set autopost enabled to false or should the bot send some message or something

simply ignore the error with a ErrorResponseException.ignore() for missing channel or set it to false.

@KevinhebertU
Copy link

+1 for this feature, would be a great addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Introduce a new feature hacktoberfest prio: low size: medium More than 100 additions or deletions
Projects
None yet
Development

No branches or pull requests

5 participants