spike-2 / Spike-2

Server specific Discord bot
https://spike-2.github.io
1 stars 0 forks source link

Admin Announce #31

Closed brandoningli closed 3 years ago

brandoningli commented 3 years ago

Related bugs/feature requests

Describe the changes

Adds an $announce command with similar syntax to $embedify to create, approve, and send announcements. Adds $pendingannouncements to list pending announcements.

Expected behavior

Announcement workflow:

  1. $announce title ; announcement text
  2. Spike replies with an embed representing the announcement (but the title prepended with Admin Announcement: to allow for reaction processing)
  3. Admins and Bot Experts can react with the check to approve.
  4. Creator can react with the X to cancel.
  5. When the approval threshold is met, any admin or bot expert can react with the mailbox to send the announcement.

Screenshots

New npm dependencies

Testing Instructions

Prepwork:

Testing:

Additional context

Action Items:

brandoningli commented 3 years ago

Current logic doesn't prevent someone from approving their own announcement. However, this can be advantageous for testing, so...

  1. Test this as is, but instead of approving, suggest changes to fix this, noting if everything else passed.
  2. Once that happens, I'll update the logic
  3. Verify the new logic
  4. Approve and merge