From 6c62a7003480ef201f07de7c5a375cd3d2166043 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jan 2021 19:40:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20various=20bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalpack/commands/__init__.py | 2 ++ royalpack/commands/ahnonlosoio.py | 2 +- royalpack/commands/cat.py | 2 +- royalpack/commands/ping.py | 2 +- royalpack/commands/ship.py | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/royalpack/commands/__init__.py b/royalpack/commands/__init__.py index 5744640b..509e52b3 100644 --- a/royalpack/commands/__init__.py +++ b/royalpack/commands/__init__.py @@ -1,2 +1,4 @@ from .ahnonlosoio import * +from .cat import * from .ping import * +from .ship import * diff --git a/royalpack/commands/ahnonlosoio.py b/royalpack/commands/ahnonlosoio.py index 17f17202..d3c04074 100644 --- a/royalpack/commands/ahnonlosoio.py +++ b/royalpack/commands/ahnonlosoio.py @@ -2,7 +2,7 @@ import royalnet.engineer as engi @engi.PartialCommand.new(syntax="") -def ahnonlosoio(*, _sentry: engi.Sentry, _msg: engi.Message, **__): +async def ahnonlosoio(*, _sentry: engi.Sentry, _msg: engi.Message, **__): """ Ah, non lo so io! """ diff --git a/royalpack/commands/cat.py b/royalpack/commands/cat.py index 4f9f69d2..d189c890 100644 --- a/royalpack/commands/cat.py +++ b/royalpack/commands/cat.py @@ -17,7 +17,7 @@ log = logging.getLogger(__name__) # Code @engi.PartialCommand.new(syntax="") -def cat(*, _sentry: engi.Sentry, _msg: engi.Message, **__): +async def cat(*, _sentry: engi.Sentry, _msg: engi.Message, **__): """ Send a cat in the chat! 🐈 """ diff --git a/royalpack/commands/ping.py b/royalpack/commands/ping.py index 409d31b1..d281cf6f 100644 --- a/royalpack/commands/ping.py +++ b/royalpack/commands/ping.py @@ -2,7 +2,7 @@ import royalnet.engineer as engi @engi.PartialCommand.new(syntax="") -def ping(*, _sentry: engi.Sentry, _msg: engi.Message, **__): +async 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!". """ diff --git a/royalpack/commands/ship.py b/royalpack/commands/ship.py index 42dca09a..bd89d2c7 100644 --- a/royalpack/commands/ship.py +++ b/royalpack/commands/ship.py @@ -16,7 +16,7 @@ log = logging.getLogger(__name__) # Code @engi.PartialCommand.new(syntax=r"(?P[A-Za-z]+)[\s+&]+(?P[A-Za-z]+)") -def ship(*, _sentry: engi.Sentry, _msg: engi.Message, first: str, second: str, **__): +async def ship(*, _sentry: engi.Sentry, _msg: engi.Message, first: str, second: str, **__): """ Ship two names together! 💞 """