Monthly Archives: February 2008

WhippingBot – Update

Well, I was less lazy than I originally thought I’d be and I added scripting support. It’s not done YET but I’m making progress. This is the userscript.py file (must be called that; directory can be changed via the bot’s settings file); it contains the bot command “HelloWorld” so if I typed “@HelloWorld” (@ being the bot prefix) it would return in a Private Message or in the channel “MY_NICK: Hello World; this was coded with Python scripting!”:

# Python Functions for Mr. Pig’s IRC Bot
# Python Scripting Interface (Actual
# Functions)
# ————————————–
# Code the function, have it return a
# value. Value returned will be sent to
# channel/user.
# ————————————–
# Functions prefixes:
# mpCmd_All_NAME() – Both Private Msg and Channel
# mpCmd_Priv_NAME() – Private Msg ONLY
# mpCmd_Chan_NAME() – Channel Msg ONLY
# ————————————–

# Import C++ to Python Interface and related functions
import MPIRC_INTERFACE
from MPIRC_INTERFACE import *

def mpCmd_All_HelloWorld(sData):

sCaller = MPIRC_INTERFACE.mpirc_getCallerNick(sData)
return sCaller + “: Hello World; this was coded with Python scripting!”

All you need to do to add a new function is add a new function define! Maybe I’ll get around to releasing it…

More info here.

WhippingBot – FreeNode IRC Bot

In order to remind myself of all the Linux API’s and create a decent program to use for the testing of some networking classes I had to code, I developed an IRC bot in C++ for Linux. I kinda got carried away with the original purpose as just testing and added some cool useless functions to the bot. Beyond the fact that I can remotely control him, he supports the following commands:

@spell word – Checks spelling using aspell API

@define word – Defines a word via google

@defineUrban word – Defines a word via UrbanDictionary

@speak topic – Quotes something; unless you know the topics don’t enter one

@time – Tells you the time in EST

He’ll respond to those in a channel or in a private message (both require the commands to be prefixed with @). Within irc.freenode.net you can message him with a nick of WhippingBot. If you want him in your channel message me with a nick of Mr_Pig and I’ll add him to your channel.

He’s rather useless but fun to mess around with.

Depending how lazy I am I may add scripting support so more commands can be scripted in. If this happens I may release him (source and all). This remains to be seen.

(Currently Executing Release: 0.2.0)

Merc Zboard “Driver” Version 0.2.0

Small update to my “driver” for the MERC Zboard on Linux. Updated due to some changes requested by “Craig”.
READ THE README – and anything the shell scripts say.

Changelog:

==============================================
Zboard Config Changelog
Copyright (C) 2007 Matt Razza
==============================================

Version 0.1.1 – Version 0.2.0

Added:
-Added support for -f
-Added a new settings file (zboard-sys.conf)
-Added support for “loadkeys” and not xmodmap

Changed:
-Verbose error reporting off by default

Fixed:

Removed:

Download Source (tar.bz2) MD5: 39cde7a58e40847abf1c8cb6b159dd7b

Gentoo ebuild (provided by Ken (changed file name – which should make it use 0.2.0)).

License