teams:dokubot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
teams:dokubot [2013-08-04 11:34] – 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30 | teams:dokubot [2015-05-21 02:38] (current) – andrwe | ||
---|---|---|---|
Line 35: | Line 35: | ||
</ | </ | ||
- | On the server of dokuwiki | + | On the server of dokuwiki |
< | < | ||
# start bot | # start bot | ||
- | service irclog | + | systemctl |
# stop bot | # stop bot | ||
- | service irclog | + | systemctl |
# restart bot | # restart bot | ||
- | service irclog | + | systemctl |
# reload bot | # reload bot | ||
- | service irclog | + | systemctl |
# checks running bot | # checks running bot | ||
- | service | + | systemctl status |
</ | </ | ||
Line 53: | Line 53: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | There is an example configuration file in the git. | + | ==== Main ==== |
+ | |||
+ | There is an example configuration file in the git.\\ | ||
+ | Move that to irclog.config.php within the directory of the bot-script (irclog.pl) and adapt it. | ||
The parameters you have to change are: | The parameters you have to change are: | ||
Line 72: | Line 75: | ||
* irc_* for automatic messages | * irc_* for automatic messages | ||
- | ===== Init-script ===== | + | ==== Special commands ==== |
+ | |||
+ | The file '' | ||
+ | This function implements bot commands by checking for commands within the message. | ||
+ | |||
+ | ===== systemd-file ===== | ||
+ | |||
+ | The following systemd.service file controls irclog. | ||
+ | Copy it to ''/ | ||
+ | |||
+ | <file ini / | ||
+ | [Unit] | ||
+ | Description=start dokubot for logging IRC messages | ||
+ | After=mysql.service | ||
+ | |||
+ | [Service] | ||
+ | User=irclog | ||
+ | Group=irclog | ||
+ | Type=forking | ||
+ | Restart=no | ||
+ | TimeoutSec=5min | ||
+ | RemainAfterExit=yes | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | ExecReload=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Init-script | ||
The following can be used to control the bot on Debian systems. Just copy it to ''/ | The following can be used to control the bot on Debian systems. Just copy it to ''/ | ||
Line 227: | Line 262: | ||
* msgstore cleanup | * msgstore cleanup | ||
* zabbix monitoring | * zabbix monitoring | ||
+ | * [[https:// |
teams/dokubot.1375608850.txt.gz · Last modified: 2013-08-04 11:34 by 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30