An open API service indexing awesome lists of open source software.

https://github.com/coldnew/esunconsulting-bot

A bot to fetch esunconsulting report and send to telegram group
https://github.com/coldnew/esunconsulting-bot

clojure stock taiwan telegram-bot

Last synced: about 2 months ago
JSON representation

A bot to fetch esunconsulting report and send to telegram group

Awesome Lists containing this project

README

          

# esunconsulting-bot

[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=103)](https://github.com/coldnew/esunconsulting-bot)
[![AGPL License](http://img.shields.io/badge/license-AGPL%20v3-red.svg?style=flat)](http://opensource.org/licenses/AGPL-3.0)

A telegram bot to fetch report from [Esunconsulting](https://www.esunconsulting.com.tw/all_reports.asp) then send to specific telegram group.

## Usage (lein)

Modify `resources/config.edn`, replace following with your telegram's info:

``` clojure
{
:esunconsulting/token "YOUR-TELEGRAM-BOT-TOKEN"
:esunconsulting/chat-id "YOUR-TELEGRAM-GROUP-CHAT-ID"
}
```

The first time to run this bot, you need to generate/migrate the database:

``` shell
lein run -- migrate
```

then, just run

``` shell
lein run
```

## Usage (Docker)

Modify `resources/config.edn`, replace following with your telegram's info:

``` clojure
{
:esunconsulting/token "YOUR-TELEGRAM-BOT-TOKEN"
:esunconsulting/chat-id "YOUR-TELEGRAM-GROUP-CHAT-ID"
}
```

If you want to run this bot on x86 machine, just:

``` shell
docker-compose -f docker-compose.x86.yml up -d
```

If you want to run this bot on arm machine, do:

``` shell
docker-compose -f docker-compose.arm.yml up -d
```

## Screenshots

This is the screenshot what this bot does, I use it on my own telegram group.

![Screenshot](https://github.com/coldnew/esunconsulting-bot/raw/master/screenshot.jpg)

## License

Copyright © 2018 Yen-Chin, Lee <>

Distributed under the [GNU Affero General Public License 3.0 (AGPL-3.0)](https://www.gnu.org/licenses/agpl-3.0.en.html).