From 400fe2400b4af0f53acf68e2f069ceb64d33a835 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Jan 2021 02:22:34 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Re-implement=20two=20old=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalpack/commands/__init__.py | 2 ++ royalpack/commands/ahnonlosoio.py | 12 ++++++++++++ royalpack/commands/ping.py | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 royalpack/commands/__init__.py create mode 100644 royalpack/commands/ahnonlosoio.py create mode 100644 royalpack/commands/ping.py diff --git a/royalpack/commands/__init__.py b/royalpack/commands/__init__.py new file mode 100644 index 00000000..5744640b --- /dev/null +++ b/royalpack/commands/__init__.py @@ -0,0 +1,2 @@ +from .ahnonlosoio import * +from .ping import * diff --git a/royalpack/commands/ahnonlosoio.py b/royalpack/commands/ahnonlosoio.py new file mode 100644 index 00000000..1f966a43 --- /dev/null +++ b/royalpack/commands/ahnonlosoio.py @@ -0,0 +1,12 @@ +import royalnet.engineer as engi + + +@engi.PartialCommand.new(name="ahnonlosoio", syntax="") +def ahnonlosoio(_sentry: engi.Sentry, _msg: engi.Message, **__): + """ + Ah, non lo so io! + """ + await _msg.send_reply(r"¯\_(ツ)_/¯ Ah, non lo so io!") + + +__all__ = ("ahnonlosoio",) diff --git a/royalpack/commands/ping.py b/royalpack/commands/ping.py new file mode 100644 index 00000000..c83f4829 --- /dev/null +++ b/royalpack/commands/ping.py @@ -0,0 +1,12 @@ +import royalnet.engineer as engi + + +@engi.PartialCommand.new(name="ping", syntax="") +def ping(_sentry: engi.Sentry, _msg: engi.Message, **__): + """ + A way to check if the bot is working: it will always reply to this command with "🏓 Pong!". + """ + await _msg.send_reply("🏓 Pong!") + + +__all__ = ("ping",)