rmmh / skybot

Python IRC bot
https://github.com/rmmh/skybot/wiki
The Unlicense
247 stars 169 forks source link

Clean up hitting the IRC internal configuration directly #203

Closed imnotjames closed 5 years ago

imnotjames commented 5 years ago

the IRC connections were arbitrarily getting values from the conf, for the connection and there was no source of truth for the default values. To clear things up, we're instead handling all of that within the IRC classes themselves, and only reference the explicitly set values.

Also move some of the global regex to the IRC connection object to clean up the global namespace

imnotjames commented 5 years ago

This also allows for setting the censor configuration per-server, in the case that a different server would not permit specific words ("This is a family-friendly server!!" :laughing: )