-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bbot isn't working anymore #19566
Comments
Same issue with Hubot #19433 looks like 3.8.0 has broken all bot integrations |
jep... quick and dirty fix and analysis here: #19567 |
Hello, another point is in driver.js, line 306, function reactToMessages. My SDK version i 0.2.9-2. The SDK log an undefined room id:
This is solved add an second call to 0 pos in args, like this: function reactToMessages(callback) {
log_1.logger.info(`[reactive] Listening for change events in collection ${exports.messages.name}`);
exports.messages.reactiveQuery({}).on('change', (_id) => {
const changedMessageQuery = exports.messages.reactiveQuery({ _id });
if (changedMessageQuery.result && changedMessageQuery.result.length > 0) {
const changedMessage = changedMessageQuery.result[0];
if (Array.isArray(changedMessage.args)) {
log_1.logger.info(`[received] Message in room ${changedMessage.args[0][0].rid}`); /* Here */
callback(null, changedMessage.args[0][0] /* And here */, changedMessage.args[1]);
}
else {
log_1.logger.debug('[received] Update without message args');
}
}
else {
log_1.logger.debug('[received] Reactive query at ID ${ _id } without results');
}
});
} But i think this is not the correctly solution. |
I managed to fix it with Best solution for now but Rocket should replace the array with the old object again. |
In my case, i need to work with 3.7.1 and 3.8.0 RC Servers. For this, i make that change: message = Array.isArray(message) ? message[0] : message; |
Description:
My Bbot boilerplate-bot isn't working anymore since 3.8. Even the example-commands aren't working anymore. The bot tries to retrieve the roomID and the messageID, both are now "undefined" as well as the userID.
Steps to reproduce:
Expected behavior:
The bot should answer with "hello" to my "hi" command.
Actual behavior:
The bot script throws an error in the console and doesn't send a "hello" back.
Server Setup Information:
Client Setup Information
Additional context
The "bleep bloop" in the logs means that the connection and the login to rocket were successfull and he receives the message as you can see. I think, he is just not able to retrieve the message or any information about the message.
Any help here?
Relevant logs:
The text was updated successfully, but these errors were encountered: