mirror of
https://github.com/RavenX8/companion-module-streamer.bot-api.git
synced 2026-04-03 12:48:54 -04:00
Added an action to execute code triggers
This commit is contained in:
4
main.js
4
main.js
@@ -15,6 +15,7 @@ class ModuleInstance extends InstanceBase {
|
||||
this.config = {}
|
||||
this.credits = {}
|
||||
this.actions = []
|
||||
this.triggers = []
|
||||
this.activeViewers = 0
|
||||
this.dataArray = []
|
||||
}
|
||||
@@ -55,6 +56,9 @@ class ModuleInstance extends InstanceBase {
|
||||
await this.client.getActions().then((value) => {
|
||||
this.actions = value
|
||||
})
|
||||
await this.client.getCodeTriggers().then((value) => {
|
||||
this.triggers = value
|
||||
})
|
||||
await this.client.getActiveViewers().then((value) => {
|
||||
this.activeViewers = value.count
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user