Browse Source

restore args

zahmis 5 years ago
parent
commit
dbf386fbc1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/slack/src/utils/slash-command-parser.ts

+ 2 - 2
packages/slack/src/utils/slash-command-parser.ts

@@ -12,7 +12,7 @@ export const parse = (slashCommand: SlashCommand): GrowiCommand => {
 
   return {
     text: slashCommand.text,
-    growiCommandType: 'hoge',
-    growiCommandArgs: ['fugo'],
+    growiCommandType: splitted[0],
+    growiCommandArgs: splitted.slice(1),
   };
 };