A chatbot that flames everything! Available on Telegram as @CoredumpFlameBot, but it also supports Mattermost.
These are the tasteful features of Flamebot:
Setup:
npm install
to install dependencies.example.env
to .env
and add the tokensThe bot will connect directly to Telegram. It will also open a webserver that is compatible with Mattermost Outgoing Webhooks.
npm run build
This will recompile the TypeScript files automatically when they change:
npm run watch
npm run serve
npm run lint
You can also install a pre-push hook to do the linting:
echo -e '#!/bin/sh\nnpm run lint' > .git/hooks/pre-push
chmod +x .git/hooks/pre-push
Run the coredump/flamebot
image.
docker run \
-e FLAMEBOT_PORT=3000 \
-e MATTERMOST_TOKEN=asdf \
-e TELEGRAM_TOKEN=jklo \
-p 8000:8000 \
coredump/flamebot:latest
Required configuration variables (env):
MATTERMOST_TOKEN
: The mattermost outgoing hook tokenTELEGRAM_TOKEN
: The telegram bot tokenOptional configuration variables (env):
FLAMEBOT_PORT
: What port to listen on for the Mattermost hook server (default 8000
)FLAMEBOT_DEBUG
: Whether to enable debug logging, either "true" or "false" (default false
)FLAMEBOT_FLAME_RATE
: The flame rate between "0" (never flame) and "1" (always flame) (default 0.03
)The Mattermost server will listen on :$FLAMEBOT_PORT/callback/mattermost/
.
Configure an outgoing hook that points to that URL.
<FlameBot> Ich hatte mal einen Hund, der war klüger als du, Heinrich.
<Henry> HAUT DINI FRÄSSE DU HUERE VOUMONGO
<FlameBot> Hab SoSlI’ Quch, freelancer!
<The-Compiler> wat
<Henry> DI HET GOPFERDAMMI KE MÖNSCH GFRAGT
<Henry> dini fetti mueter!
<FlameBot> HANI MUETTER GHÖRT??!
<Henry> JA MANN
<Henry> MUETER VERDAMMT