juniorguru / chick

A real-time, synchronous Junior Guru Discord bot
https://juniorguru-chick.fly.dev/
GNU Affero General Public License v3.0
2 stars 0 forks source link

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

Closed honzajavorek closed 9 months ago

honzajavorek commented 1 year ago

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:

Are you up for the challenge?

tenor