From 2e5fe1a7e05d4b03e7454ac4ad73d6452bffc513 Mon Sep 17 00:00:00 2001 From: Louis Chauvet Date: Tue, 21 Apr 2020 23:26:00 +0200 Subject: [PATCH] Commit initial --- .gitignore | 1 + __init__.py | 14 ++++++++++++++ infos.toml | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 __init__.py create mode 100644 infos.toml diff --git a/.gitignore b/.gitignore index e61bca2..53f16e5 100644 --- a/.gitignore +++ b/.gitignore @@ -114,3 +114,4 @@ dmypy.json # Pyre type checker .pyre/ +.idea/ \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..16b8fdc --- /dev/null +++ b/__init__.py @@ -0,0 +1,14 @@ +from config.config_types import factory +import config.config_types as c_t +import config +from mod_base import BasePython + +class Logging(BasePython): + def __init__(self, client): + super().__init__(client) + self.config.register("log_channel", factory(c_t.discord_types.Channel, client)) + + def __dispatch__(self, event, *args, **kwargs): + pass + +__main_class__ = Logging diff --git a/infos.toml b/infos.toml new file mode 100644 index 0000000..14a725c --- /dev/null +++ b/infos.toml @@ -0,0 +1,10 @@ +name = "Logging" +description = "Use discord to display bot logs" + +version = "0.1.0" +bot_version = "~=0.1.0" + +metamodule = false + +[dependencies] +mod_base = "~=0.1.0" \ No newline at end of file