1. add channel api
This commit is contained in:
@@ -27,6 +27,9 @@ class WS {
|
||||
// this.joinChannel(channel)
|
||||
this.addCmdQueue(this.joinChannel, [channel])
|
||||
})
|
||||
event.on('twitchLeave', (channel) => {
|
||||
this.addCmdQueue(this.leaveChannel, [channel])
|
||||
})
|
||||
event.on('twitchSend', data => {
|
||||
if (!('msg' in data) || typeof data.msg !== 'string') return
|
||||
if (!('channel' in data) || typeof data.channel !== 'string') return
|
||||
|
||||
Reference in New Issue
Block a user