01
2021-12-17
jrmu
botnow: the versatile IRC bot
03
2021-12-17
jrmu
botnow has only been tested on openbsd 6.9
05
2021-12-17
jrmu
### System requirements ###
07
2021-12-17
jrmu
In order to install botnow, you will need to have the following installed and
08
2021-12-17
jrmu
configured:
10
2021-12-17
jrmu
1) sendmail (https://wiki.ircnow.org/index.php?n=Opensmtpd.Configure)
11
2021-12-17
jrmu
2) nsd (https://wiki.ircnow.org/index.php?n=Nsd.Configure)
12
2021-12-17
jrmu
3) openhttpd (https://wiki.ircnow.org/index.php?n=Openhttpd.Configure)
13
2021-12-17
jrmu
4) php (https://wiki.ircnow.org/index.php?n=Openbsd.Php)
14
2021-12-17
jrmu
5) znc (https://wiki.ircnow.org/index.php?n=Znc.Chroot)
15
2021-12-17
jrmu
6) IPv6 (https://wiki.ircnow.org/index.php?n=Hostnameif.Static)
17
2021-12-17
jrmu
### Install instructions ###
19
2021-12-17
jrmu
$ tar xvzf botnow.tgz
20
2021-12-17
jrmu
$ cd botnow
21
2021-12-17
jrmu
$ doas make
22
2021-12-17
jrmu
$ doas su botnow
23
2021-12-17
jrmu
$ cd /home/botnow/
24
2021-12-17
jrmu
$ cp botnow.conf.example botnow.conf
26
2021-12-17
jrmu
Fill the file ipv6s with all the unused IPv6 addresses available on your server.
28
2021-12-17
jrmu
$ vi botnow.conf
29
2021-12-17
jrmu
$ ./botnow.pl
31
2021-12-17
jrmu
### Configuration of httpd.conf ###
33
2021-12-17
jrmu
server "www.$hostname" {
34
2021-12-17
jrmu
alias "$hostname"
35
2021-12-17
jrmu
listen on $ext_ip port 80
36
2021-12-17
jrmu
location "/.well-known/acme-challenge/*" {
37
2021-12-17
jrmu
root "/acme"
38
2021-12-17
jrmu
request strip 2
40
2021-12-17
jrmu
location "*.php" {
41
2021-12-17
jrmu
fastcgi socket "/run/php-fpm.sock"
43
2021-12-17
jrmu
root "/htdocs/ircnow/"
46
2021-12-17
jrmu
### Reinstall ###
48
2021-12-17
jrmu
If you need to reinstall, run
50
2021-12-17
jrmu
$ doas make -i
52
2021-12-17
jrmu
### Changelog ###
54
2021-12-17
jrmu
Version 0.07: Added support for requesting shell accounts
55
2021-12-17
jrmu
Version 0.06: Refactored code to be modular
56
2021-12-17
jrmu
Version 0.05: Refactored conf file out of the script and supplied sensible defaults
57
2021-12-17
jrmu
Version 0.04: Switched from flatfiles to sqlite for user metadata
58
2021-12-17
jrmu
Version 0.03: Added new DNS commands
59
2021-12-17
jrmu
Version 0.02: Updated wiki pages, added warnings to common errors, added support
60
2021-12-17
jrmu
for trustallcerts
61
2021-12-17
jrmu
Version 0.01: First public version of botnow