From 66be9d1eab091647fcf00bc744678a1c5388e72c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Jan 2021 14:42:33 +0100 Subject: [PATCH 1/2] Make ahnonlosoio a coroutine function --- royalpack/commands/ahnonlosoio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalpack/commands/ahnonlosoio.py b/royalpack/commands/ahnonlosoio.py index 1f966a43..3282c9a3 100644 --- a/royalpack/commands/ahnonlosoio.py +++ b/royalpack/commands/ahnonlosoio.py @@ -2,7 +2,7 @@ import royalnet.engineer as engi @engi.PartialCommand.new(name="ahnonlosoio", syntax="") -def ahnonlosoio(_sentry: engi.Sentry, _msg: engi.Message, **__): +async def ahnonlosoio(_sentry: engi.Sentry, _msg: engi.Message, **__): """ Ah, non lo so io! """ From 4287719107e02afea59b914349009766df1ed269 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Jan 2021 14:42:49 +0100 Subject: [PATCH 2/2] Make ping a coroutine function --- royalpack/commands/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalpack/commands/ping.py b/royalpack/commands/ping.py index c83f4829..3c1289c8 100644 --- a/royalpack/commands/ping.py +++ b/royalpack/commands/ping.py @@ -2,7 +2,7 @@ import royalnet.engineer as engi @engi.PartialCommand.new(name="ping", 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!". """