diff --git a/modules/pingtools/index.py b/modules/pingtools/index.py new file mode 100644 index 0000000..d663d58 --- /dev/null +++ b/modules/pingtools/index.py @@ -0,0 +1,4 @@ +text = self.MESSAGE.text + +if text == "!ping": + self.RESPONSE = f"Pong in {time.time() - 7200 - float(self.MESSAGE.date.strftime('+%s'))} seconds" diff --git a/modules/pingtools/meta.json b/modules/pingtools/meta.json new file mode 100644 index 0000000..b68f42a --- /dev/null +++ b/modules/pingtools/meta.json @@ -0,0 +1,6 @@ +{ + "start_on_boot": true, + "alias": "pingtools", + "version": 1, + "index_file": "index.py" +}