11 lines
349 B
Python
11 lines
349 B
Python
from twitchio.ext import commands as twitch_commands
|
|
|
|
|
|
class PingComponent(twitch_commands.Component):
|
|
def __init__(self, bot: twitch_commands.Bot) -> None:
|
|
self.bot = bot
|
|
|
|
@twitch_commands.command(name="ping")
|
|
async def ping(self, ctx: twitch_commands.Context) -> None:
|
|
await ctx.send(f"Pong! Hello {ctx.chatter.name}")
|