…const robot = new Robot(mockAdapter as any, false, botName, botAlias) robot.loadAdapter().then(() => { // create a user const user = robot.brain.userForId(“1”, { name: settings?.testUserName || “mocha”, room: “#mocha” }) const context = new TestBotContext(robot as unknown as Robot, user) done(context)…
At Wehkamp we believe in enabling teams to automate their work. Lately we’ve been experimenting with GitHub’s Hubot project to build chat-bots for Slack. It has been quite a ride! What did we build? A lot! Bots took control of…
…we use it to alter the message, otherwise we let Hubot Grafana have the original message. Here is the code: import { Bot } from “hubot-grafana/src/Bot” function parseGrafanaSlugs(robot: Hubot.Robot) { if (!robot) throw “Argument ‘robot’ is empty.” const bot =…
…receive middleware that use the UpdatableMessage to inject a loading message: import { createUpdatableMessage } from “../common/UpdatableMessage” function rewriteGrafanaCommands(robot: Hubot.Robot) { if (!robot) throw “Argument ‘robot’ is empty.” robot.receiveMiddleware(async context => { const listeners = (<any>robot).listeners const listener = listeners.find(l…
…on for while… We’ve mitigated this by checking if the sender of a certain message is a bot or not. Do you want to know more about our Hubot? Read Jump-starting Slack bot projects: bot-zero. Changelog 2022-08-18 😳 Many typos….
For our bot-zero project, we’ve decided to go all in on dev containers. What’s not to love? You can basically ship a development environment complete with node 22 and all the Visual Studio Code extensions we need. And if you…
‘Made in America’ label turns out to be some sort of a marketing scam, and that is what the bots at Amazon are now confirming. To be fair: an LLM may generate anything, so take their output with a grain…