pcparadise / discordbot

GNU General Public License v3.0
3 stars 5 forks source link

Latest Booster in channel stats #18

Open awsomearvinder opened 3 years ago

awsomearvinder commented 3 years ago

Issue: Boosters are people who help support the server andf keep the benefits it has such as its increased emoji limit, banner, and vanity URL. Promoting people who boost would be a nice benefit of the server.

Proposal: Make a channel with the name just something like Booster: (discord user name), this can be updated to reflect the latest booster.

Drawbacks: Innapropriate discord names - someone could potentially abuse the feature. (Maybe have a command to overwrite the latest booster by a mod?)

Ganoodles commented 3 years ago

I'll work on something like that, but testing it is a big problem...

awsomearvinder commented 3 years ago

I'm not too concerned with testing something this trivial, worst case it stops working or something

lukadd16 commented 3 years ago

Just going to add some references to the documentation for whoever is working on this. Looking at it briefly, it looks really easy to implement as it's just a matter of creating a Cog.listener for the on_member_update event, comparing the premium_since attribute of this member before and after and then carrying out the necessary channel update logic if the member started boosting.

If you're interested in knowing why the library doesn't have a native bot event like on_member_boost you can read the discussion here: https://github.com/Rapptz/discord.py/issues/2397 (TL;DR it's because the Discord API itself exposes no such event).


Also, you probably implied this when saying channel but it would make sense that a voice channel is used to achieve this behaviour (as then you can restrict the permission to connect to the channel for all members, but yet still have view permissions enabled for all so that the channel name can be seen).