switch to twurple
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { ChatUserstate, Client } from "tmi.js";
|
||||
import type { ChatMessage } from "@twurple/chat";
|
||||
import { logSuccess } from "../logger/logger.ts";
|
||||
import type { ICommand, ICommandRequirements } from "./interface.ts";
|
||||
|
||||
export class SongCommand implements ICommand {
|
||||
@@ -12,12 +13,12 @@ export class SongCommand implements ICommand {
|
||||
};
|
||||
|
||||
triggered = async (
|
||||
client: Client,
|
||||
channel: string,
|
||||
_state: ChatUserstate,
|
||||
_message: string,
|
||||
_args: Array<string>,
|
||||
user: string,
|
||||
text: string,
|
||||
msg: ChatMessage,
|
||||
) => {
|
||||
client.say(channel, "testing");
|
||||
logSuccess(`${channel} song command triggered`);
|
||||
// client.say(channel, "testing");
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user