maxsaltonstall / letters-with-strangers

Apache License 2.0
2 stars 0 forks source link

refactor: make bot into an importable module #164

Closed davidstanke closed 2 years ago

davidstanke commented 2 years ago

let's add a server.py to the root, to be used to start up the application when run on a server (vs. local dev). To keep it DRY, we'll want to factor out common functionality, e.g. instantiating cogs. So it should be more like it was, where bot is an importable module, which would be imported into main.py and into server.py.

main.py should be VERY simple -- just import the bot and run it.

server.py will have extra bits like adding logging connectors, etc.