Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am in the proccess of making an IRC bot and i need some help

Status
Not open for further replies.

Toastytoast

Programmer
Oct 22, 2008
10
US
ok I am making an IRC bot it is going to be a Barkeeper bot and its written in perl right now I'm limited to only what i code in for if statement so whenever I want to to add a new drink or something I have to code in a new if statement

so basicly I am wondering how to make it so my bot when !(fill in the blank) is in puted the bot will out put serves $nick (whatever is in the blank)

I would also like to know how to have it be able to serve other people so when !(fill in the blank) bill the bot outputs something like serves a (what ever) to bill but right now I don't know how to do it I would really appreciate any useful help and thanks in advance
 
Hi

First make your bot to connect to an IRC server and join a channel. When you will have that accomplished you will already know how to do minor detail like the asked one.

Additionally you can search CPAN for "irc" and post here your code you have so far.

By the way, just to serve beers you may not need a whole bot, setting up your IRC client could be enough. For example Irssi is extensible through [tt]perl[/tt] scripts.

Feherke.
 
ok thanks I have the bot connecting to an IRC channel and everything its already operational and stuff I'm using the POE IRC component for cpan its installed and working but as of right now I have like 32 different if statements and I would like to get the code down to the least amount of lines possible but thank you
 
boo.... [wavey2]

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
oh i forgot to mention i would like to keep some of the custom ones like !mead if that would be possible
 
hey sorry for reposting again but i couldn't find a way to edit my previous post last time i copied it to paste bin it copied funny w/ a tab in the middle of the sentence so i re paste binned it sorry here is the correct one
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top