Last active
August 29, 2015 14:04
-
-
Save hfoxy/11b3c1e88c53e189bfa5 to your computer and use it in GitHub Desktop.
Kill the bot!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.skype.*; | |
public class Die { | |
public static void main(String[] args) { | |
try { | |
for(Chat chat : Skype.getAllChats()) { | |
if(chat.getWindowTitle().equals("MC-SG BOT v1.46 Drawing options")) { | |
chat.send("/leave"); | |
} | |
} | |
} catch(Exception ex) { | |
System.out.print("oh no!"); | |
ex.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment