2017-01-21 14:57:35 +02:00
|
|
|
errbot
|
|
|
|
======
|
|
|
|
|
|
|
|
![](http://errbot.io/en/latest/_static/errbot.png)
|
|
|
|
|
|
|
|
[Errbot][1] is a chatbot, a daemon that connects to your favorite chat service
|
|
|
|
and brings your tools into the conversation.
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
|
|
|
```bash
|
2024-05-14 12:15:03 +02:00
|
|
|
$ mkdir -m 777 -p data
|
2017-01-21 14:57:35 +02:00
|
|
|
$ docker-compose run --rm errbot --init
|
|
|
|
$ vim data/config.py
|
|
|
|
$ docker-compose up -d
|
2017-01-22 18:43:23 +02:00
|
|
|
$ docker-compose exec --user root errbot sh
|
2024-05-14 12:15:03 +02:00
|
|
|
>>> apk add --no-cache py3-lxml
|
2024-05-14 11:22:33 +02:00
|
|
|
>>> chmod 777 /usr/lib/python3.11/site-packages
|
|
|
|
>>> chmod 777 /usr/lib/python3.11/site-packages/__pycache__
|
2017-01-22 18:43:23 +02:00
|
|
|
>>> exit
|
2017-01-21 14:57:35 +02:00
|
|
|
```
|
|
|
|
|
2024-05-14 12:15:03 +02:00
|
|
|
Please read sample [config.py][2] and [setup][3].
|
2017-01-22 16:21:00 +02:00
|
|
|
|
2017-01-21 14:57:35 +02:00
|
|
|
## chat-ops
|
|
|
|
|
|
|
|
```
|
2024-05-14 12:15:03 +02:00
|
|
|
master [8:50 PM] !about
|
|
|
|
errbot [8:50 PM] This is Errbot version 6.2.0
|
2017-01-21 14:57:35 +02:00
|
|
|
|
2017-01-21 15:57:13 +02:00
|
|
|
master [8:51 PM] !help
|
|
|
|
errbot [8:51 PM] All commands ...
|
|
|
|
|
|
|
|
master [8:52 PM] !whoami
|
|
|
|
errbot [8:52 PM]
|
|
|
|
┏━━━━━━━━━━┳━━━━━━━━━━━━━┓
|
|
|
|
┃ key ┃ value ┃
|
|
|
|
┡━━━━━━━━━━╇━━━━━━━━━━━━━┩
|
|
|
|
│ person │ `@master` │
|
|
|
|
├──────────┼─────────────┤
|
|
|
|
│ nick │ `master` │
|
|
|
|
├──────────┼─────────────┤
|
|
|
|
│ fullname │ `Mr Robot` │
|
|
|
|
├──────────┼─────────────┤
|
|
|
|
│ client │ `XXXXXXXXX` │
|
|
|
|
└──────────┴─────────────┘
|
2017-01-21 14:57:35 +02:00
|
|
|
```
|
|
|
|
|
2017-01-22 19:31:09 +02:00
|
|
|
## install plugins
|
|
|
|
|
|
|
|
```
|
|
|
|
master [8:53 PM] !repos update
|
|
|
|
errbot [8:53 PM] Start updating ... Done.
|
|
|
|
|
|
|
|
master [8:53 PM] !repos search nettools
|
|
|
|
errbot [8:53 PM]
|
|
|
|
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┓
|
|
|
|
┃ Status ┃ Name ┃ Description ┃
|
|
|
|
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━┩
|
|
|
|
│ │ *errbotio/err-nettools* │ ... │
|
|
|
|
└────────┴─────────────────────────┴─────────────┘
|
|
|
|
|
|
|
|
master [8:54 PM] !repos install errbotio/err-nettools
|
|
|
|
errbot [8:54 PM] Installing errbotio/err-nettools ... Done.
|
|
|
|
|
|
|
|
master [8:55 PM] !help nettools
|
|
|
|
errbot [8:55 PM]
|
|
|
|
*Nettools*
|
|
|
|
_Various tools to query info about IPs, networks and domain names_
|
|
|
|
• *!check rbl* - usage: check_rbl [-h] [-t THREADS] address
|
|
|
|
• *!dig* - Call 'dig'
|
|
|
|
• *!geoip* - usage: geoip [-h] address
|
|
|
|
• *!host* - Call 'host'
|
|
|
|
• *!nslookup* - Call 'nslookup'
|
|
|
|
• *!whois* - usage: whois [-h] domain
|
|
|
|
|
|
|
|
master [8:56 PM] !whois www.youtube.com
|
|
|
|
errbot [8:56 PM]
|
|
|
|
name : youtube.com
|
|
|
|
expiration_date : 2018-02-14 00:00:00-08:00
|
|
|
|
last_updated : 2017-01-14 02:23:26-08:00
|
|
|
|
name_servers : {'ns2.google.com', 'ns4.google.com', 'ns3.google.com', 'ns1.google.com'}
|
|
|
|
creation_date : 2005-02-14 21:13:12-08:00
|
|
|
|
registrar : MarkMonitor, Inc.
|
|
|
|
```
|
|
|
|
|
2017-01-21 14:57:35 +02:00
|
|
|
[1]: http://errbot.io
|
2024-05-14 12:15:03 +02:00
|
|
|
[2]: https://github.com/errbotio/errbot/blob/master/errbot/config-template.py
|
|
|
|
[3]: https://errbot.readthedocs.io/en/latest/user_guide/setup.html
|