danparizher / Pax-Academia

General purpose utility bot for the Homework Help Discord server
MIT License
13 stars 5 forks source link

fix: Escape bad regex and resolve type errors #163

Closed GabeMillikan closed 1 year ago

GabeMillikan commented 1 year ago

This PR:

  1. Makes the add-alert command escape invalid regex before inserting it into the database.
  2. Updates the type hinting to fix several errors
  3. refactors a couple of related logical issues & code quality things
  4. adds a migration to db_update.py which will update all of our existing alerts

Discord_KFDQSWhKpy