|
|||||||
![]() |
Forum Index > Jibble.org > PircBot | ||
Making New Scripts |
|||
| | | Printable Version |
|
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? |
![]() Newbie ![]() Status: offline
Registered: 01/23/10 |
||||||||
|
|||||||||
|
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
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.
|
![]() Moderator Status: offline
Registered: 06/01/04 |
||||||||
|
|||||||||
|
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
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!"? |
![]() Newbie Status: offline
Registered: 01/23/10 |
||||||||
|
|||||||||
|
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()
|
![]() Moderator Status: offline
Registered: 06/01/04 |
||||||||
|
|||||||||
|
|
| All times are CDT. The time is now 10:00 AM. |
|
|