Uses 75K of libraries. Click here for Pure Java version (71L/1K/3K).
1 | !752 |
2 | !1002672 // pircbot library |
3 | |
4 | import org.jibble.pircbot.*; |
5 | |
6 | p { |
7 | new MyBot bot; |
8 | bot.setVerbose(true); |
9 | bot.connect("irc.freenode.net"); |
10 | bot.joinChannel("#pircbot"); |
11 | } |
12 | |
13 | static class MyBot extends PircBot { |
14 | MyBot() { |
15 | setName("a12345"); |
16 | setAutoNickChange(true); |
17 | } |
18 | |
19 | public void onConnect() { |
20 | listChannels(">10"); |
21 | } |
22 | |
23 | public void onChannelInfo(String channel, |
24 | int userCount, |
25 | String topic) { |
26 | print("Channel found: " + channel + " (" + userCount + ") - " + topic); |
27 | } |
28 | } |
Began life as a copy of #1002673
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002675 |
Snippet name: | Test PircBot (list channels - may return a HUGE list!) |
Eternal ID of this version: | #1002675/1 |
Text MD5: | 11f4c69a6460c923c03ca052a192d332 |
Transpilation MD5: | 9d4a742086ed31db07021b6685db205f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-12 17:03:58 |
Source code size: | 585 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 602 / 613 |
Referenced in: | [show references] |