Skip to content

🎲 An easy implementation of a Telegram bot for rolling the dice

License

Notifications You must be signed in to change notification settings

mguellsegarra/diceroll_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 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

Releases

No releases published

Packages

No packages published