Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import com.qotsa.exception.InvalidHandle;
  2. import com.qotsa.jni.controller.WinampController;
  3. ....
  4. ....
  5.  
  6. public class ZuzuBot extends ListenerAdapter<PircBotX> {
  7. ...
  8. ...
  9. WinampController winamp;
  10.  
  11. ...
  12.  
  13. public ZuzuBot(String userFile) throws Throwable {
  14. ....
  15. this.winamp = new WinampController();
  16. ....
  17. }
  18. public void onMessage(MessageEvent event) throws InvalidHandle {
  19. ....
  20. ....
  21. if (message.contentEquals("!song")){
  22. this.chan.message("Beep");
  23. this.chan.message("Current Song:" + this.winamp.getTitle());
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement