CPx86

A powerful IRC bot
Download

CPx86 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Decessus
  • Publisher web site:

CPx86 Tags


CPx86 Description

A powerful IRC bot CPx86 aims to be a powerful, complete IRC bot, but also a BNC server and a protection bot.From an IRC front:To use the commands you have created, you must follow this syntax: .command param1 "param param"Given that the trigger is set to '.'. The command parameters are seperated by a space (' '), so if your parameter is, say, a message, encapsulating the parameters with "" tells CPx86 to ignore the spaces within the string.You may also preform single line/multiple instances/commands. a single '|' will recall the command with different parameters: .command param1 | param2This is the same as calling: .command param1 .command param2A double '|' ('||') will call a new command on a single line: .command param || .command2 param paramYou can use both of these on a single line such as: .join #chan1 | #chan2 || .message #chan1 "Hey look" | #chan2 "What's up people?"From a development front: Most of the functions (ie: kick(), join(), ect..) are pretty much self explanitory.Creating an IRC oper: (IRC).CreateIrcOper("Oper Login","Oper Password",access level)Creating an on 'event' call: (IRC).CreateIrcEvent("IRC Event",&FunctionToCall)This will call your function on the specified event. Your function must be of type: int function (CPx86::RawEventData,string,CPx86::IRC*)RawEventData params: RawEventData.nick = User who called the event/command RawEventData.target = where the event/command originated (ie: with a PRIVMSG event, 'target' will be either the channel or 'CurrentNick')Creating a Command Handler: (IRC).CreateIrcCommand("command",&functionToCall,access level)This will call the desired function when someone calls a command. (Be sure to NOT include the trigger in "command", ie: "join" NOT ".join"Your function must be of type: int function(vector,CPx86::RawEventData,CPx86::IRC*)In example: .message #chan "Lol params"Will become:vector.at(0): #chanvector.at(1): Lol paramsect. Requirements: · Boost library


CPx86 Related Software