-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathtest.js
30 lines (30 loc) · 1.39 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require('dotenv').config();
var ComfyJS = require("./app");
ComfyJS.onCommand = ( user, command, message, flags, extra ) => {
console.log( "onCommand:", command, user, message, flags, extra );
if( command == "say" ) {
ComfyJS.Say( "test reply" );
}
}
ComfyJS.onChat = ( user, message, flags, self, extra ) => {
console.log( "onChat:", user, message, flags, self, extra );
}
ComfyJS.onWhisper = ( user, message, flags, self, extra ) => {
console.log( "onWhisper:", user, message, flags, self, extra );
}
ComfyJS.onReward = ( user, reward, cost, extra ) => {
console.log( "onReward:", user, reward, cost, extra );
}
ComfyJS.onHypeTrain = ( type, level, progress, goal, total, timeRemainingInMS, extra ) => {
console.log( "onHypeTrain:", type, level, progress, goal, total, timeRemainingInMS, extra );
}
ComfyJS.onShoutout = ( channelDisplayName, viewerCount, timeRemainingInMS, extra ) => {
console.log( "onShoutout:", channelDisplayName, viewerCount, timeRemainingInMS, extra );
}
ComfyJS.onPoll = ( type, title, choices, votes, timeRemainingInMS, extra ) => {
console.log( "onPoll:", type, title, choices, votes, timeRemainingInMS, extra );
}
ComfyJS.onPrediction = ( type, title, outcomes, topPredictors, timeRemainingInMS, extra ) => {
console.log( "onPrediction:", type, title, outcomes, topPredictors, timeRemainingInMS, extra );
}
ComfyJS.Init( process.env.TWITCHUSER, process.env.OAUTH );