1
Fork 0
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:
Steffo 2021-01-10 19:40:06 +01:00
parent 923df767ce
commit 6c62a70034
Signed by: steffo
GPG key ID: 6965406171929D01
5 changed files with 6 additions and 4 deletions

View file

@ -1,2 +1,4 @@
from .ahnonlosoio import *
from .cat import *
from .ping import *
from .ship import *

View file

@ -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!
"""

View file

@ -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! 🐈
"""

View file

@ -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!".
"""

View file

@ -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! 💞
"""