From 1e4962f2ba414c8eda2c624fb88ec8d77f383dd2 Mon Sep 17 00:00:00 2001 From: Louis Chauvet Date: Mon, 27 Apr 2020 18:41:16 +0200 Subject: [PATCH] Initial commit --- .gitignore | 1 + __init__.py | 12 ++++++++---- infos.toml | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6cedfb4..3a1fd83 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,4 @@ dmypy.json # Pyre type checker .pyre/ +.idea/ diff --git a/__init__.py b/__init__.py index 300f2f1..23c998c 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,9 @@ -class REPO_NAME_PASCAL: - def __dispatch__(self): - pass +from mod_commands import BaseCommand -__main_class__ = REPO_NAME_PASCAL \ No newline at end of file + +class Ping(BaseCommand): + async def command(self, message, args, kwargs): + await message.channel.send(f"Pong {round(self.client.latency, 3)}s!") + + +__main_class__ = Ping diff --git a/infos.toml b/infos.toml index 15f4b98..0c85d08 100644 --- a/infos.toml +++ b/infos.toml @@ -1,5 +1,5 @@ -name = "REPO_NAME_TITLE" -description = "" +name = "Ping" +description = "Ping module" version = "0.1.0" bot_version = "~=0.1.0" @@ -7,3 +7,4 @@ bot_version = "~=0.1.0" metamodule = false [dependencies] +mod_commands = "~=0.1.0" \ No newline at end of file