Skip to content

Commit

Permalink
Switch brain.classify to message.send
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Jan 29, 2019
1 parent 3bd48c3 commit 287901e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/gateway/gateway.handleOpenApiMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = async function(data, rawMessage, cb) {
try {
switch(rawMessage.action) {
case 'create-message':
await gladys.brain.classify(user, { text: rawMessage.data.text });
await gladys.message.send(user, { text: rawMessage.data.text, receiver: null });
cb({ success: true });
break;
case 'create-event':
Expand Down

0 comments on commit 287901e

Please sign in to comment.