Mozbot
Mozbot is an IRC bot. Originally designed specifically for the Moznet community, it has grown into a multipurpose bot with many features. Mozbot allows developers to write bot modules in Perl using the mozbot APIs. Modules can be installed and updated on the fly, without shutting down the bot.
http://www.mozilla.org/projects/mozbot
Contents |
Installation
Those steps guide you how to install a mozbot on your shell. It's written in Perl and is easy to use and configure.
1. Get Virtuoso level for permanent Perl access.
2. Download the bot at http://ftp.mozilla.org/pub/mozilla.org/webtools/mozbot-LATEST.tar.gz. Run the following to download:
- 2.1 wget http://ftp.mozilla.org/pub/mozilla.org/webtools/mozbot-LATEST.tar.gz
3. Follow the installation guide to get the bot started:
- 3.1. Run
chmod +x mozbot.pl - 3.2. Type
./mozbot.plin the Mozbot directory. - 3.3. Specify the private channel where the bot would reside during the installation and initial configuration and answer the setup questions asked by the script.
- 3.4. Use those to setup your admin account:
- /msg mozbot auth admin password
- /msg mozbot newuser <username> <password> <password>
- /msg mozbot bless <username>
- /msg mozbot auth <username> <password>
The user 'admin' should now be deleted and the account you just set up will become permanent.
- While you do so be sure public doesn't know about the bot's presence for better security, since some people can know the default account password for the bot.
- 3.5. The bot is up and ready for use! See 'help' and 'vars <module name>' for configuration settings. You also can " /msg <nick of the bot> load <module name> ", where module name is the filename of a module file present; the ones that come with the default installation are listed at http://mxr.mozilla.org/mozilla/source/webtools/mozbot/BotModules/.
How to keep Mozbot running
Using GNU Screen
Run screen in your shell. Then, type cd moz* and then ./mozbot.pl. Once it's connected to the server, you can exit the screen.
Using nohup
Navigate to your Mozbot directory, then do nohup ./mozbot.pl &/
Errors?
If you have any problems, just join #globalshellz on freenode and let us know!