idlefox/todo.md

705 B

Refresh roles setup

Admin-only command

Prepwork

  • Retrieve all roles
  • Separe them in groups of X (maximum per message)
  • Make sure we know which messages to delete (probably will be a bot-only channel so all messages should be fine)

Command execution

  • Delete all messages (only the right ones)
  • Repost all messages
  • We need as many messages as will fit all the buttons
  • (optional) last message "new roles XXX" with links to where the buttons are?

Buttons

  • One button per role
  • Toggles role on-click

Add / Remove roles

  • /roles_add and /roles_remove with an option fed from list of roles
  • if possible, as many options as people want
  • /roles_list returns a list of all user roles