twitch2ma
Version:
Twitch chat bot that runs commands on the MA GrandMA2 using Telnet.
18 lines (14 loc) • 643 B
text/typescript
import {Command, Config, Parameter} from "./Config";
import TwitchPrivateMessage from "twitch-chat-client/lib/StandardCommands/TwitchPrivateMessage";
export class RuntimeInformation {
public readonly config: Config;
public readonly userName: string;
public readonly rawMessage: TwitchPrivateMessage;
public readonly instructions: Command | Parameter;
constructor(config: Config, userName: string, rawMessage: TwitchPrivateMessage, instructions: Command | Parameter) {
this.config = config;
this.userName = userName;
this.rawMessage = rawMessage;
this.instructions = instructions;
}
}