VikingBot is yet another simple PHP based IRC bot with support for plugins and secure IRC servers.
The bot requires Unix/Linux shell access with PHP and SSL support in PHP for use against secure IRC servers.
cp config.dist.php config.php
nano config.php
(undeclared settings will be declared by config.dist.php)sh start.sh
cat logs/vikingbot.log
You can define different config files: sh start.sh config=anotherConfigFile.php
The following commands are supported out of the box (aka they are not controlled by plugins):
!exit [adminPassword]
Shuts the bot down!restart [adminPassword]
Restarts the bot!help [command]
Sends a list of commands or the description of a given command to the userThe following commands are supported via the plugins that are installed by default:
!botlog [adminPassword] [rows=10]
The bot responds with the [rows] last rows of the bot log file!memory
The bot responds with memory usage statistics!ping
The bot responds with a pong to say that it is still alive!uptime
The bot responds with the it's uptime!upgrade [adminPassword]
The bot will attempt to upgrade itself and its plugins to the latest version via git pull
!op <nick> <channel> [adminPassword]
The bot attempts to give user on channel OP statusThe following plugins are installed by default:
!botlog
with the last N rows of the bot's log file!memory
with information about memory usage!op ...
by oping a user if the bot has op itself!ping
with a "PONG".!uptime
with the bots uptimegit pull
Links to other plugins for VikingBot:
Make sure to install your plugins into the thirdparty-plugins folder so git ignores them!
If you wish, you can format text the bot sends to a channel/user via your plugins. Use any of the following codes to apply the relevant text color or format. The text will keep the given format until either end of string, or the {reset} tag.
Available colors:
{white}, {black}, {blue}, {green}, {red}, {darkRed}, {purple}, {orange}, {yellow}, {lime}, {teal}, {cyan}, {lightBlue}, {pink}, {grey} & {lightGrey}
Other tags:
{reset}, {bold} & {underline}
Example:
"{bold}i am bold and {red}red{reset}, but now i am normal"
PS: Different IRC-clients may display colors differently, some servers may even deny color usage!
Feel free to contact me via IRC on EfNet/Freenode/Undernet (Ueland).