Jump to content

MEL0N

Ac Guest
  • Posts

    183
  • Joined

  • Last visited

Everything posted by MEL0N

  1. Hi, I wrote a short and simple "mass whisper" bot for Twitch chat that can be used as a tool by anyone to massively recruit for AC. :~) What this does exactly is: find all users in the chat, message them the whispers Prerequisites: Java, Twitch Account, Twitch OAuth, pircbot library dependency Twitch OAuth - Twitch chat runs on an irc backend and chooses to use OAuth as a form of authentication for applications, go here: https://twitchapps.com/tmi/ and click "Connect to Twitch" --> authorize to receive your code (looks like oauth:.................................), plug this into the oauth field in the code pircbot library dependency - this is the dependency that this script was written on, simply download it, extract and add the path to your classpath or add it to your libraries in your IDE Proof of concept: code: import org.jibble.pircbot.*; public class MyBot extends PircBot { public MyBot(String name) { this.setName(name); } } import org.jibble.pircbot.*; import java.net.*; import java.io.*; public class WhisperMain { public static void main(String[] args) throws Exception { System.out.println("Le Twitch Whisperer by Yah Boy MEL0N #ac - http://www.rs-ac.com/index.php?/profile/2299-mel0n/\n"); String vars[] = { "*", //twitch username "oauth:**************************", //oauth code "password" "ice_poseidon", //stream name "5", //second delay between messages "false" //see all the cool, unnecessary irc logs? [true/false] }; String chatters[] = getUserz(vars[2]).split(" "); String messageQueue[] = { "Hey bro Keepo", "Yo I just saw you talking in stream and thought you were cool lol", "I'm part of this large awesome deadman mode clan and thought you'd fit right in", "check us out if you want: ṚṠ-ḀḈₓⅭꝊṀ (rs dash ac dꝊt ⅭꝊṀ), hope to see you there bro", }; MyBot bot = new MyBot(vars[0]); bot.setVerbose(Boolean.parseBoolean(vars[4])); bot.connect("199.9.253.119",6667,vars[1]); // dont change me bot.joinChannel("#199.9.253.119"); // dont change me bot.sendRawLineViaQueue("CAP REQ :twitch.tv/commands"); // dont change me for (int y = 1; y < chatters.length; y++) { try { for (int x = 0; x < messageQueue.length; x++) { Thread.sleep(Integer.parseInt(vars[3])*1000); bot.sendRawLineViaQueue("PRIVMSG #jtv :/w " + chatters[y] + " " + messageQueue[x]); } } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } System.out.println("Messaged " + y + " people."); } } public static String getUserz(String chat) throws Exception { URL stream = new URL("http://tmi.twitch.tv/group/user/"+ chat +"/chatters"); BufferedReader inLine = new BufferedReader(new InputStreamReader(stream.openStream())); String in; boolean start = false; String scrape = ""; while ((in = inLine.readLine()) != null) { if (in.contains("viewers")) { start = true; } if (start) { if (in.contains("\"") && (in.contains(","))) { scrape = scrape + in.substring(in.indexOf("\"")+1,in.length()-2) + " "; } else { scrape = scrape + in.substring(in.indexOf("\"")+1,in.length()-1) + " "; } } } inLine.close(); scrape = scrape.substring(scrape.indexOf(":")+2,scrape.length()); return scrape; } } If you have any questions, ask below. :~) Enjoy
  2. Couldn't have put it better, too many people were talking over each other in ts the whole thing was mass confusion
  3. Right place at the right time, haha awesome
  4. awesome tab, mine looks like that without the barrows xd
  5. Your RNG constant must be high in jagex player config files :~)
  6. Awesome, haven't seen very many pets
  7. Nice, hopefully a tent soon too
  8. Try: running as admin / sudo restarting computer downgrading jdk/java your isp could be initiating a dns lookup block for rs, so consider changing to a dns server like google's (8.8.8.8) or opends ns (208.67.222.222 ) check firewall rules to make sure rs isnt blocked delete rs cache
  9. Good luck, plenty of time during holiday break to pk
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.