feat: add defineTrigger and defineAction

This commit is contained in:
Ali BARIN
2022-10-15 22:16:10 +02:00
parent ee9d095454
commit 92a2d68a81
23 changed files with 147 additions and 131 deletions

View File

@@ -1,7 +1,7 @@
import { IGlobalVariable } from '@automatisch/types';
import defineTrigger from '../../../../helpers/define-trigger';
import searchTweets from './search-tweets';
export default {
export default defineTrigger({
name: 'Search Tweets',
key: 'searchTweets',
pollInterval: 15,
@@ -30,7 +30,7 @@ export default {
},
],
async run($: IGlobalVariable) {
async run($) {
return await searchTweets($);
},
};
});