Initial commit

This commit is contained in:
2024-01-25 17:13:10 -05:00
committed by GitHub
commit 79dccc9709
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)
},
},
})
}