I've created an IRC Bot for http://www.rsplayers.wikia.com/ that successfully connects to the channel and has some basic commands, but I've been stuck on this one part which allows you to link around the site. Wiki links are basically [[Link]], nothing fancy. Currently commands can only be done in one def, here is an example say command:
def say(self, sender, info, cmd):
return "PRIVMSG %s :%s\n" % (info[2], cmd[1])
info[2] is the channel the command was issued in and cmd[1] is anything after the !say. The commands are listed like this too:
self.USER_CMD = {'!say': self.say, '!test': self.test, '!time': self.time, '!help': self.help, '!8ball': self.eightball}
I don't have much (any) idea how I can create this, so I need help.
EDIT: As asked in the comments to be more specific: Whenever someone typed in [[Brakets]] it will return with a link back to the rsplayers wiki website. An example being:
( Nick ) [[Main Page]]