mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
🐛 Fix various bugs
This commit is contained in:
parent
923df767ce
commit
6c62a70034
5 changed files with 6 additions and 4 deletions
|
@ -1,2 +1,4 @@
|
|||
from .ahnonlosoio import *
|
||||
from .cat import *
|
||||
from .ping import *
|
||||
from .ship import *
|
||||
|
|
|
@ -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!
|
||||
"""
|
||||
|
|
|
@ -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! 🐈
|
||||
"""
|
||||
|
|
|
@ -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!".
|
||||
"""
|
||||
|
|
|
@ -16,7 +16,7 @@ log = logging.getLogger(__name__)
|
|||
|
||||
# Code
|
||||
@engi.PartialCommand.new(syntax=r"(?P<first>[A-Za-z]+)[\s+&]+(?P<second>[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! 💞
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue