Skip to content

sploicers/hubolt

Repository files navigation

Hubolt

Hubolt (working title) is a chatbot for Slack. It's heavily inspired by Hubot, but makes use of Slack's Bolt SDK.

Currently, it just listens for message events in channels based on a regex, and responds with a message or reacts with an emoji.
It is planned to add persistent storage support in the near future, and move towards a more explicitly plugin-based architecture.

Contributing

Configuration

Building/running

Directly:
  • yarn start (will also run a build)
Via Docker:
  • docker build . -t hubolt
  • docker run --rm --env-file .env -it hubolt

Adding a new listener

Create a new TypeScript file under the listeners directory similar to the following:

import { Robot } from "src/robot";

export default function echo(robot: Robot) {
	robot.hear(/.+/gmi, async ({ message, say, }) => {
		await say(message.text);
	});
}

This will automatically be picked up when running the app - it scans for and loads all TypeScript files from this directory.
Note that your listener function must be a default export. See any of the existing listeners for examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published