The SUSI server returns an array of objects - actions.
Current Behaviour:
The type (answer,rss,table, etc) is checked separately and their positions in the array is pre-assumed.
https://github.com/fossasia/susi_slackbot/blob/development/index.js#L34Expected Behaviour:
loop through the actions array and for each type of action, implement suitable response.
The SUSI server returns an array of objects -
actions
. Current Behaviour: The type (answer
,rss
,table
, etc) is checked separately and their positions in the array is pre-assumed. https://github.com/fossasia/susi_slackbot/blob/development/index.js#L34 Expected Behaviour: loop through theactions
array and for each type of action, implement suitable response.