mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
✨ Re-implement two old commands
This commit is contained in:
parent
2c27fd0beb
commit
400fe2400b
3 changed files with 26 additions and 0 deletions
2
royalpack/commands/__init__.py
Normal file
2
royalpack/commands/__init__.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
from .ahnonlosoio import *
|
||||||
|
from .ping import *
|
12
royalpack/commands/ahnonlosoio.py
Normal file
12
royalpack/commands/ahnonlosoio.py
Normal 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",)
|
12
royalpack/commands/ping.py
Normal file
12
royalpack/commands/ping.py
Normal 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",)
|
Loading…
Reference in a new issue