Initial commit

This commit is contained in:
2023-10-30 20:36:51 -04:00
committed by GitHub
commit 03706849b3
12 changed files with 215 additions and 0 deletions

20
actions.js Normal file
View File

@@ -0,0 +1,20 @@
module.exports = function (self) {
self.setActionDefinitions({
sample_action: {
name: 'My First Action',
options: [
{
id: 'num',
type: 'number',
label: 'Test',
default: 5,
min: 0,
max: 100,
},
],
callback: async (event) => {
console.log('Hello world!', event.options.num)
},
},
})
}