Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.05 KB

MIT license Build Status

Haskbot

Telegram bot for Haskellers. This is a work in progress, not ready for usage yet.

Screen1

Warning

I’m still a Haskell beginner, so I may do things wrong.

Building

I hope you won’t try to build it locally, but anyway…

Run these commands in the project root directory:

echo "optional-packages: vendor/**/*.cabal" > cabal.project.local
mkdir vendor
git clone --single-branch --branch add-monad-fail-inst https://github.com/vyorkin/telegram-bot-simple.git vendor/
make all

To run a Telegram bot you need to create one first, by asking BotFather — a specialised bot that allows you to create new bots.

Then, create your own config:

cp config.example.toml config.toml

Edit the config.toml to set your bot token.

Now you can run your bot (hopefully).