Commit Briefs

Izzy Blacklock

moved converting config strings to arrays to IRCNOW::IO::IRC::new() (libIRCNOW)

Goal is to be able to pass the $conf object parsed from the config file to IRCNOW::IO::IRC::new() directly.




Izzy Blacklock

Converted botnow to use $irc object


Izzy Blacklock

Added some debug messages


Izzy Blacklock

bug fixes


Izzy Blacklock

update install script; moved socket creation to IRCNOW::IO::IRC

added git clone of p5-IRCNOW library to install script added call to IRCNOW::IO::IRC::new() with params to create the $irc object; Designed the IRCNOW::IO::IRC module to be useable in object mode or function call mode. This commit isues both to confirm it works.




Izzy Blacklock

set my $bots = \@IRCNOW::IO::IRC::bots;


Branches



Tags

This repository contains no tags

Tree

.gitignorecommits | blame
Commandscommits | blame
LICENSEcommits | blame
READMEcommits | blame
botnow*commits | blame
botnow.conf.examplecommits | blame
botnow_db_fixer.plcommits | blame
captcha.pngcommits | blame
install*commits | blame
intuitive.ttfcommits | blame
lib/
networkscommits | blame
register.phpcommits | blame
report*commits | blame
report.origcommits | blame
shellcommits | blame
shelllastseencommits | blame
table.sqlcommits | blame
todocommits | blame
user_manager.sh*commits | blame
wordscommits | blame
words-LICENSEcommits | blame

README

botnow: the versatile IRC bot

botnow has only been tested on openbsd 7.3

### System requirements ###

In order to install botnow, you will need to have the following installed and
configured:

1) sendmail (https://wiki.ircnow.org/index.php?n=Opensmtpd.Configure)
2) nsd (https://wiki.ircnow.org/index.php?n=Nsd.Configure)
3) openhttpd (https://wiki.ircnow.org/index.php?n=Openhttpd.Configure)
4) znc (https://wiki.ircnow.org/index.php?n=Znc.Chroot)
5) IPv6 (https://wiki.ircnow.org/index.php?n=Hostnameif.Static)

### Install instructions ###

$ tar xvzf botnow.tgz
$ cd botnow
$ doas ./install
$ doas su botnow
$ cd /home/botnow
$ cp botnow.conf.example botnow.conf
$ vi botnow.conf
$ ./botnow

### Configuration of httpd.conf ###

server "www.$hostname" {
        alias "$hostname"
        listen on $ext_ip port 80
        location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }
        location "*.php" {
            fastcgi socket "/run/php-fpm.sock"
        }
        root "/htdocs/ircnow/"
}

### Reinstall ###

If you need to reinstall, run

$ doas make -i

### Changelog ###

Version 0.08: Automatically generate IPv6 addresses and handle rDNS zone files using NSD, and added more configuration options
Version 0.07: Added support for requesting shell accounts
Version 0.06: Refactored code to be modular
Version 0.05: Refactored conf file out of the script and supplied sensible defaults
Version 0.04: Switched from flatfiles to sqlite for user metadata
Version 0.03: Added new DNS commands
Version 0.02: Updated wiki pages, added warnings to common errors, added support
for trustallcerts
Version 0.01: First public version of botnow