aboutsummaryrefslogtreecommitdiff
blob: ba8671ae97c78e8a699ea222450845d6d5653400 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# [Deprecated] COMM2TG
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fclarkzjw%2FCOMM2TG.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fclarkzjw%2FCOMM2TG?ref=badge_shield)


A bot that catches Ingress comm messages and forwardes them to Telegram channel.

## Dependencies

+ *nix like OS, tested on Ubuntu

+ Python3

+ [Python-Telegram-Bot](https://github.com/python-telegram-bot/python-telegram-bot)

+ selenium

```bash
sudo pip3 install selenium
```

+ [Phantomjs](http://phantomjs.org/)

## Usage

+ Make sure your OS support coresponding locales based on your comm range.

  e.g. zh_CN.UTF-8

```bash
sudo locale-gen zh_CN.UTF-8
sudo dpkg-reconfigure locales
```

+ Copy `config.json.example` to `config.json` first, and remember to modify `config.json` and `PhantomjsPath` in `bot.py`

  To run, just type

```bash
python3 bot.py
```


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fclarkzjw%2FCOMM2TG.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fclarkzjw%2FCOMM2TG?ref=badge_large)
Powered by cgit v1.2.3 (git 2.41.0)