How To Run Your Own Bot
Last updated at 8:30 pm UTC on 12 May 2004
There are 2 ways to run!
1) from within the image
- Put the following in a workspace.
- bot _ IRCBot new.
- bot nick: 'clever-name'.
- bot server: '216.152.64.213'.
- bot openAsMorph.
- from the morph click on the "connect" button
- now you have 2 options to make the bot join channels
- graphically thru the IRCMorph. As if you were using it as a regular IRC client (you could even start talking to people just like normal if you wanted to)
- leave the bot alone from Squeak, and have it join thru prompt messages
2) from the outside, headlessly
- "squeakvm.exe -headless ircbot.image arg1 arg2 ..."
- the args will be used if they follow this convention:
- <setup-key>-><value>
- you may recognize this as an association
- the keys are: {nick, userName, fullName, server, port, channel}
- you can enter as many "channel-gt;#scood" args as you want
- e.g. vm.exe -headless bot.image channel->squeak channel->test channel->math
Here is an example with the defaults that I already set in the IRCBot code:
squeak.exe -headless ircbot.image nick–>oi fullName–>JediKnightOi userName–>oi server–>216.152.64.213
port–>6667 channel–>#scood
Webb McDonald ©