1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 03:24:20 +00:00

Re-implement two old commands

This commit is contained in:
Steffo 2021-01-03 02:22:34 +01:00
parent 2c27fd0beb
commit 400fe2400b
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,2 @@
from .ahnonlosoio import *
from .ping import *

View file

@ -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",)

View file

@ -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",)