Unverified Commit 7c7dd893 authored by SingLi's avatar SingLi Committed by GitHub
Browse files

Update to 0.1.0 new method names

parent 6d7d0bf6
......@@ -53,7 +53,7 @@ const runbot = async () => {
// receive it in the processMesssages callback
// greets from the first room in ROOMS
const sent = await driver.sendMessageByRoom( BOTNAME + ' is listening ...',ROOMS[0]);
const sent = await driver.sendToRoom( BOTNAME + ' is listening ...',ROOMS[0]);
console.log('Greeting message sent');
}
......@@ -68,7 +68,7 @@ const processMessages = async(err, message, messageOptions) => {
const response = message.u.username +
', how can ' + BOTNAME + ' help you with ' +
message.msg.substr(BOTNAME.length + 1);
const sentmsg = await driver.sendMessageByRoom(response, roomname);
const sentmsg = await driver.sendToRoom(response, roomname);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment