2023-07-27 09:59:38 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from discord.ext import commands
|
|
|
|
|
|
|
|
from main import strings
|
|
|
|
from sb_tools import universal
|
|
|
|
|
|
|
|
racu_logs = logging.getLogger('Racu.Core')
|
|
|
|
|
|
|
|
|
2023-07-27 10:02:59 +00:00
|
|
|
class PingCog(commands.Cog):
|
2023-07-27 09:59:38 +00:00
|
|
|
def __init__(self, sbbot):
|
|
|
|
self.bot = sbbot
|
|
|
|
|
|
|
|
@commands.slash_command(
|
|
|
|
name="ping",
|
|
|
|
description="Simple status check.",
|
|
|
|
guild_only=True
|
|
|
|
)
|
|
|
|
@commands.check(universal.channel_check)
|
|
|
|
async def ping(self, ctx):
|
|
|
|
await ctx.respond(content=strings["ping"].format(ctx.author.name))
|
|
|
|
|
|
|
|
|
|
|
|
def setup(sbbot):
|
2023-07-27 10:02:59 +00:00
|
|
|
sbbot.add_cog(PingCog(sbbot))
|