DeadEd.com
IRC Bots, Java Game Query and Control Libraries, iPhone Apps, and More ...
Sign Up!
Login
Welcome to DeadEd.com
Tuesday, September 07 2010 @ 10:00 AM CDT

 Forum Index > Jibble.org > PircBot
 Making New Scripts
 |  Printable Version
By: Keith (offline) on Saturday, January 23 2010 @ 02:12 PM CST (Read 321 times)  
Keith

How do I make new scripts (like !site, and my bot will tell the user the site)

 

And how can I make a highscore lookup type thing?
 


Forum Newbie
Newbie


Status: offline

Registered: 01/23/10
Posts: 2

Profile Email    
   
By: DeadEd (offline) on Sunday, January 24 2010 @ 02:15 AM CST  
DeadEd

PircBot is not a scripting framework, it's a coding API.  It's written in Java, which means that you will need to learn Java to make any "scripts".

http://java.sun.com/docs/books/tutorial/ is one of the best places to do this.  If that's not what you had in mind then you may need to look at some IRC scripting system (PircBot is not it).

 

"highscore lookup type thing" ?  It's good that you know what thing it is that you want and what the high scores are Wink - but that is a bit too vaugue to answer to, and with your previous question in mind then I would say that you should find yourself a framework to use first then figure out how to do this within that framework - probably with the help of some ready made library as a suggestion - it really depends upon what you are looking up.

 

If the idea of coding everything from scratch is not appealing to you, then you could always go for a ready made bot and find modules/plugins etc that do what it is that you are wanting.

 


Forum Moderator
Moderator

Status: offline

Registered: 06/01/04
Posts: 589

Profile Email Website  
   
By: Keith (offline) on Sunday, January 24 2010 @ 10:26 AM CST  
Keith

Quote by: DeadEd

PircBot is not a scripting framework, it's a coding API.  It's written in Java, which means that you will need to learn Java to make any "scripts".

http://java.sun.com/docs/books/tutorial/ is one of the best places to do this.  If that's not what you had in mind then you may need to look at some IRC scripting system (PircBot is not it).

 

"highscore lookup type thing" ?  It's good that you know what thing it is that you want and what the high scores are Wink - but that is a bit too vaugue to answer to, and with your previous question in mind then I would say that you should find yourself a framework to use first then figure out how to do this within that framework - probably with the help of some ready made library as a suggestion - it really depends upon what you are looking up.

 

If the idea of coding everything from scratch is not appealing to you, then you could always go for a ready made bot and find modules/plugins etc that do what it is that you are wanting.

 

 

Thanks. Also how can I make the bot send a message when it joins, like "Hi there! I'm Antebellum,  a bot!"?


Forum Newbie
Newbie

Status: offline

Registered: 01/23/10
Posts: 2

Profile Email    
   
By: DeadEd (offline) on Sunday, January 24 2010 @ 01:18 PM CST  
DeadEd

You need to look at the PircBot JavaDocs to see the events that you can deal with.  Take a look at all of the onXYZ() methods.

In this case, you could react to onJoin() and then do a sendMessage() Wink

 


Forum Moderator
Moderator

Status: offline

Registered: 06/01/04
Posts: 589

Profile Email Website  
   



 All times are CDT. The time is now 10:00 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Google Links ...

My Account





Sign up as a New User
Lost your password?

What's New

Stories

No new stories

Comments last 2 days

No new comments

Files last 14 days

No new files
No new comments

Links last 2 weeks

No new links