feat: add (incomplete) nix flake

dave.py isn't packaged yet. Will try to do this myself but dealing with
vcpkg is a bit annoying.
This commit is contained in:
2026-03-22 17:59:19 -04:00
parent 3232e797c8
commit 4185723b8d
40 changed files with 494 additions and 66 deletions

24
errornocord/main.py Normal file
View File

@@ -0,0 +1,24 @@
import logging
from . import constants, events
from .state import client
def main():
logging.basicConfig(
format=(
"%(asctime)s %(levelname)s %(name)s:%(module)s %(message)s"
if __debug__
else "%(asctime)s %(levelname)s %(message)s"
),
datefmt="%Y-%m-%d %T",
level=logging.DEBUG if __debug__ else logging.INFO,
)
logging.getLogger("disnake").setLevel(logging.WARNING)
events.prepare()
client.run(constants.SECRETS["TOKEN"])
if __name__ == "__main__":
main()