Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m4rr/money_bot
Docker-containered bot. Added to a group chat, she replies to any message containing price and currency pattern. Live!
https://github.com/m4rr/money_bot
bot currencies docker ruby telegram
Last synced: 9 days ago
JSON representation
Docker-containered bot. Added to a group chat, she replies to any message containing price and currency pattern. Live!
- Host: GitHub
- URL: https://github.com/m4rr/money_bot
- Owner: m4rr
- License: mit
- Created: 2015-12-31T11:05:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T17:51:22.000Z (over 4 years ago)
- Last Synced: 2024-07-31T12:07:24.147Z (3 months ago)
- Topics: bot, currencies, docker, ruby, telegram
- Language: Ruby
- Homepage: https://t.me/USDRUB_bot
- Size: 343 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-telegram-bots - money_bot - Simple currency converter bot with a well-designed UX (Examples / Ruby)
README
# Money Bot for Telegram
Bot is handy in group chats. She looks for the currencies in chat context and converts $, €, ₽, CAD currencies to opposite ones (based on Open Exchange Rates). _Opposite ones_ are set empirically.
For example:
* someone sent to a chat `bought a backpack for $119 free shipping`
* she replies `7691 ₽`Start chat with **[@USDRUB_bot](https://telegram.me/USDRUB_bot)** in Telegram. Ask '$1', '5€' or even '100 RUB'.
### Build Docker Image
In the folder:
```sh
$ echo "BOT_TOKEN = 'YOUR_TOKEN'" >> money_bot/token.rb # Telegram Bot Token from @BotFather
$ echo "OXR_APP_ID = 'YOUR_OXR_ID'" >> money_bot/token.rb # App token from Open Exchange Rates$ docker build -t m4rr/money_bot . # Build Docker image
```### Start Up the Container
```sh
$ docker run -d --name money_bot --restart=always m4rr/money_bot # Run Docker container
```