Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.qotsa.exception.InvalidHandle;
- import com.qotsa.jni.controller.WinampController;
- ....
- ....
- public class ZuzuBot extends ListenerAdapter<PircBotX> {
- ...
- ...
- WinampController winamp;
- ...
- public ZuzuBot(String userFile) throws Throwable {
- ....
- this.winamp = new WinampController();
- ....
- }
- public void onMessage(MessageEvent event) throws InvalidHandle {
- ....
- ....
- if (message.contentEquals("!song")){
- this.chan.message("Beep");
- this.chan.message("Current Song:" + this.winamp.getTitle());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement