Thread: Galaxy DC Bot
View Single Post
Unread 29 Jan 2009, 18:48   #1
Devlin
Registered User
 
Join Date: Apr 2002
Posts: 126
Devlin has a spectacular aura aboutDevlin has a spectacular aura aboutDevlin has a spectacular aura about
Post Galaxy DC Bot

I know there are various bots capable of doing this, but I decided to take on the challenge of writing my own. I've decided to put it here for anyone who wants it incase you don't trust alliance bots to not spy on your gal. Plus, I don't see the need in being stingy with it anyways. I've tested it out with 60 calls and it didn't flood out, but I'm not sure how many more than that it can handle without flooding.

I ask only that you don't remove the header at the top that gives me credit for the work. Also, feel free to edit the code to improve or add to it, but if you do so please upload it to a new pastebin and put the code here for others to enjoy your modifications. The bot is fairly basic right now, because I didn't feel like investing too much time in a bot for what will be my last round of PA under this name or any other. It doesn't parse galaxy status pastes, so you have to add calls manually. It also doesn't keep track of ETAs. If anyone feels like undertaking these tasks please feel free, but as mentioned above please share your work with the rest of the community as I have.

It's a mIRC bot, so to install it just press ALT+R in mirc and paste all of the code into the remotes window. Verify you have remotes turned on by doing the command [/remotes on] in a channel or status window. Finally, do the command [/set %chan #yourgalchannel] so the bot knows where to accept commands from After that you can type !help for a list of commands.

Here's the help file so you can get a preview of what it does before trying it:

To add a defcall (arguments in red brackets are required): !addcall [planet #] [attacker coords] [attacker race] (shipclass) (status) (bcalc)
To delete a defcall: !delcall [id#]
To edit a defcall: !editcall [planet|coords|race|class|status|bcalc] [new info]
To list calls: !calls
To reset the defcall system: !resetcalls

mIRC Galaxy DC Bot: http://pastebin.com/m3dabb5bc

PS: Sorry, I have a bad habit of not commenting my code

Also, here is my inc reporting script. It works off slash commands rather that functioning as a bot though it wouldnt be hard to turn it into one: http://pastebin.com/m40619adf

Last edited by Devlin; 1 Feb 2009 at 14:22.
Devlin is offline   Reply With Quote