diff options
author | Jinwei Zhao <[email protected]> | 2017-01-02 22:14:55 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-02 22:14:55 +0800 |
commit | ca2cdf5c89977ca44a4ac2b5edb46d2dcdb55fab (patch) | |
tree | 5b864a4fe1cbd94d7a7bb6ad6ea5ed5fd1d3ac50 /README | |
parent | cb52be3055b9ef05b5d1ead9431fdd69834ee3ba (diff) | |
download | COMM2TG-ca2cdf5c89977ca44a4ac2b5edb46d2dcdb55fab.tar.gz |
update README
Diffstat (limited to 'README')
-rwxr-xr-x | README | 38 |
1 files changed, 0 insertions, 38 deletions
@@ -1,38 +0,0 @@ | |||
1 | # VoiceOfHangzhou | ||
2 | |||
3 | A bot that catches Ingress comm messages and forwardes them to Telegram channel. | ||
4 | |||
5 | ## Dependencies | ||
6 | |||
7 | + *nix like OS, tested on Ubuntu | ||
8 | |||
9 | + Python3 | ||
10 | |||
11 | + [Python-Telegram-Bot](https://github.com/python-telegram-bot/python-telegram-bot) | ||
12 | |||
13 | + selenium | ||
14 | |||
15 | ```bash | ||
16 | sudo pip3 install selenium | ||
17 | ``` | ||
18 | |||
19 | + [Phantomjs](http://phantomjs.org/) | ||
20 | |||
21 | ## Usage | ||
22 | |||
23 | + Make sure your OS support coresponding locales based on your comm range. | ||
24 | |||
25 | e.g. zh_CN.UTF-8 | ||
26 | |||
27 | ```bash | ||
28 | sudo locale-gen zh_CN.UTF-8 | ||
29 | sudo dpkg-reconfigure locales | ||
30 | ``` | ||
31 | |||
32 | + Copy `config.json.example` to `config.json` first, and remember to modify `config.json` and `PhantomjsPath` in `bot.py` | ||
33 | |||
34 | To run, just type | ||
35 | |||
36 | ```bash | ||
37 | python3 bot.py | ||
38 | ``` \ No newline at end of file | ||