za419 / CadenceBot

A Discord bot for Cadence Radio
MIT License
2 stars 1 forks source link

Add temporary user ban feature #39

Closed za419 closed 4 years ago

za419 commented 4 years ago

The admin should be able to temporarily ban a user (Cadence ban @user). This should ban the user for a time period specified by config.

The ban will last until one of these conditions:

  1. The admin runs "Cadence unban @user"
  2. The time period specified in config expires (automatic unban via setTimeout?)
  3. The bot is restarted (ban list is held in memory and not persisted).
za419 commented 4 years ago

By 433a135, this feature is complete, including persistent banning (supplanting caveat 3), which includes automatic unban after config expiry (expired bans are passed over during ban consideration)