Skip to content

Add new feature: Ability to get/remove role  #1

@tylerjrogers

Description

@tylerjrogers

It would be cool if pwnbot could allow a user to get a role or remove a role, and that, the runner/owner(s) of the bot can set a list of roles that are pre-made on the server and the name of the roles members can add/remove from themselves, are placed inside of a list of strings within a configuration file for the bot, i.e. pwnbotsecrets.py, and imported then later checked on command !role when the user is requesting said role.

An example use case of this is, say a CTF team creates a channel, or category of channels in their discord server, for communication during a specific ctf competition, i.e. discord channel: faustctf-21. And, later on, the team doesn't want to remove these channels, but instead archive them. One way of doing this, is to make said channels invisible unless someone adds a role to themselves to make channel faustctf-21 visible to them, so then they can read through the archived communications that were produced during the competition, or view old source files and scripts that were shared during the competition within the channel(s) for it.

This way, the bot can be used to ascertain the role to view these old archived channels, and then remove the role when not wanting them to clutter the channel list anymore.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions