Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.38 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.38 KB

🎲 Diceroll Telegram Bot

An easy implementation of a Telegram bot for rolling the dice. Thanks to @yagop for his fantastic node-telegram-bot-api library. Also thanks to @takkytsubasa for showing interest in my work and encourage me to publish it.

alt text

There are two bots running this software and available for everyone in Telegram:

Usage

Just clone this repo and edit config.json file in order to change the bot API key:

{
  "telegram_api_token": "<your_api_token_here>",
  "default_locale": "en"
}

Run it!

# node index.js

And enjoy rolling the dice.

I personally use pm2 to run it in my server.

i18n

The bot supports i18n, so you can specify a locale:

# node index.js --locale ca

The localization files are found in locales/ folder. Default locale if you don't specify any is english en.

Feel free to open PR's if you want to contribute adding more languages!

License

The MIT License (MIT)

Copyright (c) 2017 Marc Güell Segarra