!ping

(Opis w trakcie tworzenia)

Kod:

import { 
    ChatCommand, Mess, CommandsModule, 
    TwitchChatMessage, ChatCommandExecution 
} from "@tfxjs/tfxjs";

@ChatCommand(CommandsModule.forFeature({
    name: 'ping',
    keyword: 'ping',
}))
export default class PingCommand implements ChatCommandExecution {
    async execution(
        @Mess() message: TwitchChatMessage,
    ): Promise<void> {
        message.reply(`Pong!`);
    }
}

Last updated