Skip to main content

Config module

To activate the module you have to add an entry on property modules in your config file evntboard.json

{  ...  "modules": ["moduleName"]}

You just have to add module folder name.

After the first loading of EvntBoard with the desired module, a config.json file will be added in the module folder!

You will have to fill it with your information before restarting EvntBoard

Usage#

To call a module from a trigger you have to use the module name in camelCase !

Usage in trigger reaction

async function reaction({ payload }) {    await module['moduleName'].reactionFunction(argument1, argument2)}

Example#

Config

{  "modules": [ "twitchMain", "obs" ]}

In trigger reaction

async function reaction({ payload }) {    await module['twitchMain'].say('Hi from my main account')    const version = await module['obs'].getVersion()    console.log('obs version', version)}