1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-03 00:23:13 +00:00
Lumi/modules/ping.py

27 lines
560 B
Python
Raw Normal View History

2023-07-27 09:59:38 +00:00
import logging
2024-03-16 14:05:40 +00:00
from discord.ext import commands, bridge
2023-07-27 09:59:38 +00:00
from main import strings
2024-02-28 13:07:16 +00:00
from lib import checks
2023-07-27 09:59:38 +00:00
2024-02-28 13:01:20 +00:00
logs = logging.getLogger('Racu.Core')
2023-07-27 09:59:38 +00:00
2023-07-27 10:02:59 +00:00
class PingCog(commands.Cog):
2024-02-28 13:01:20 +00:00
def __init__(self, client):
2024-02-28 13:11:22 +00:00
self.client = client
2023-07-27 09:59:38 +00:00
2024-03-16 14:05:40 +00:00
@bridge.bridge_command(
2023-07-27 09:59:38 +00:00
name="ping",
description="Simple status check.",
guild_only=True
)
2024-02-28 13:01:20 +00:00
@commands.check(checks.channel)
2023-07-27 09:59:38 +00:00
async def ping(self, ctx):
await ctx.respond(content=strings["ping"].format(ctx.author.name))
2024-02-28 13:01:20 +00:00
def setup(client):
client.add_cog(PingCog(client))