Section 5. Setting up ngIRCd¶
Step 1. Editing ngIRCd.conf¶
New change to botman:¶
- You will want to set static channels for your bots.
- This can be done by editing /etc/ngircd/ngircd.conf use nano or your editor of choice.
nano /etc/ngircd/ngircd.conf
scroll down until you see[Server]# More [Server] sections, if you like ...``
Copy and past the following into ngircd.conf right below the above
[Channel]Name = #bot1# Topic for this channelTopic = Bot alerts channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23[Channel]# Name of the channelName = #bot2# Topic for this channelTopic = Bot alerts channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23[Channel]# Name of the channelName = #new_alerts# Topic for this channelTopic = Bot tracker channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23[Channel]# Name of the channelName = #new_watch# Topic for this channelTopic = Bot watch channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23[Channel]# Name of the channelName = #new_watch_wat# Topic for this channelTopic = Bot watch channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23[Channel]# Name of the channelName = #new_tracker# Topic for this channelTopic = Bot tracker channel# Initial channel modes;Modes = tnk# initial channel password (mode k);Key = Secret# Key file, syntax for each line: “<user>:<nick>:<key>”.# Default: none.;KeyFile = /etc/ngircd/#chan.key# maximum users per channel (mode l);MaxUsers = 23
- crtl + X
- Y
- enter
- sudo service ngircd stop
- sudo service ngircd start
- sudo service ngircd status
- done!