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

Bot should add people to new posts in #týdenní-plány #23

Closed
honzajavorek opened this issue Aug 3, 2023 · 0 comments
Closed

Bot should add people to new posts in #týdenní-plány #23

honzajavorek opened this issue Aug 3, 2023 · 0 comments

Comments

@honzajavorek
Copy link
Member

The #týdenní-plány channel is a "forum" type channel. From the API it behaves almost like a regular channel, with the exception that is has only threads and nothing else: https://docs.pycord.dev/en/master/api/models.html#discord.ForumChannel To support engagement, we want to achieve the following behavior:

When anyone starts a new post in that channel (but in reality only mods can start a new post there and in reality only Milek does it), the bot immediately adds everyone who has the role "Plánuju si týden" would be added to the thread. There is already a function implementing the adding: https://github.com/juniorguru/juniorguru-chick/blob/3bdfa24cb96fdeacf1a70584e699e63983e4da9f/juniorguru_chick/lib/threads.py#L47

There is more automation planned in the future, but that would be done by the slow bot. Implementing this issue would help to bridge the time before that happens.


If you, dear reader, feel ready for the dark side, let me know and we can skip this issue! I'll show you around the the main repository. We want the slow bot to start a new thread every Monday, with a canned message, and adding everyone with the role. The biggest issue is that the posts MUST contain a funny gif, so you'd be:

  • collecting relevant funny gifs
  • saving them somewhere in efficient way, or storing links to them and downloading them on the fly - your call
  • writing an algorithm for iterating over them so that they don't repeat (only after some time)
  • learning how to start a new post in the forum channel including uploading an animated image file

Are you up for the challenge?

tenor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant