This file contains 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
package require tdom | |
proc wolframalpha {nick channel arg} { | |
if {$arg == ""} { | |
return "Please provide a search query." | |
} elseif {[string first "Necrodoom" $arg] != -1} { | |
return "Did you mean: stop spamming $::botnick?" | |
} | |
set xml [wget http://api.wolframalpha.com/v2/query?format=plaintext&appid=APPID&[::http::formatQuery input $arg]] | |
set document [dom parse $xml] |
This file contains 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.mojang.api.profiles.HttpProfileRepository; | |
import com.mojang.api.profiles.Profile; | |
import com.mojang.api.profiles.ProfileCriteria; | |
public class BasicConverter { | |
private static final HttpProfileRepository profileRepository = new HttpProfileRepository(); | |
private static final String AGENT = "minecraft"; | |
public static String getUUID(String username) { |