-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.ts
More file actions
24 lines (19 loc) · 889 Bytes
/
Copy pathIndex.ts
File metadata and controls
24 lines (19 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { DAW } from "./src/dawConnections/DAW.d.ts";
import { ChatConnection } from "./src/chatConnections/ChatConnection.d.ts";
import { GenericDAW } from "./src/dawConnections/GenericDAW.ts";
import { TwitchConnection } from "./src/chatConnections/TwitchConnection.ts";
import { HelpCommand } from "./src/commands/HelpCommand.ts";
import { BassCommand } from "./src/commands/BassCommand.ts";
import { PlaySoundCommand } from "./src/commands/PlaySoundCommand.ts";
function main() {
const daw: DAW = new GenericDAW();
console.log("Creating Twitch Client");
const twitch: ChatConnection = new TwitchConnection();
console.log("Registering Commands");
twitch.registerCommand(new HelpCommand(twitch));
twitch.registerCommand(new BassCommand());
twitch.registerCommand(new PlaySoundCommand(daw));
console.log("Connecting to twitch irc....");
twitch.connect();
}
main();