Added an action to execute code triggers

This commit is contained in:
2024-01-30 14:30:49 -05:00
parent 9fafe2b318
commit 5afe40b56a
2 changed files with 43 additions and 1 deletions

View File

@@ -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
})