Advertisement
Guest User

MoMoBot

a guest
Mar 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.84 KB | None | 0 0
  1. // Main Class
  2. public class Config {
  3.    
  4.     //public static String currentGame = "League of Legends";
  5.    
  6.     public static void main(String[] args) throws Exception {
  7.         String channel = "#destiny";
  8.        
  9.         // Define the Bot
  10.         TwitchBot bot = new TwitchBot();
  11.         bot.setVerbose(true);
  12.         bot.connect("irc.twitch.tv", 6667,"oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
  13.         bot.joinChannel(channel);
  14.         //bot.sendRawLineViaQueue("CAP REQ :twitch.tv/commands");
  15.        
  16.     }
  17.  
  18. }
  19. _________________________________________________________________________________________
  20.  
  21. // MoMobot
  22.  
  23. import org.jibble.pircbot.*;
  24.  
  25. public class TwitchBot extends PircBot {
  26.  
  27.     public TwitchBot() {
  28.         this.setName("MoMoOuO_bot");        // Create a new twitch acct
  29.  
  30.         this.isConnected();
  31.         sendRawLineViaQueue("CAP REQ :twitch.tv/commands");
  32.  
  33.     }
  34.     public void onMessage(String channel, String sender, String login, String hostname, String message) {
  35.  
  36.         if(message.equalsIgnoreCase("!momoabout")) {
  37.             sendMessage(channel, "/w " + sender + " Hey Guys! OuO");
  38.         }
  39.         else if(message.equalsIgnoreCase("!momohelp")) {
  40.             sendMessage(channel, "List of commands: !momolewds, !momomilfs, !momololis, !lewdornot, !momodrawings");           
  41.         }
  42.         else if(message.equalsIgnoreCase("!momolewds")) {
  43.             sendMessage(channel, "Work in progress. OnO");
  44.         }
  45.         else if(message.equalsIgnoreCase("!momomilfs")) {
  46.             sendMessage(channel, "http://i.imgur.com/GvzdWlT Work in progress. OnO");
  47.         }
  48.         else if(message.equalsIgnoreCase("!momololis")) {
  49.             sendMessage(channel, "http://i.imgur.com/3A61haL.gif loliDance");
  50.         }
  51.         else if(message.equalsIgnoreCase("!lewdornot")) {
  52.             sendMessage(channel, "LEWD OR NOT? http://i.imgur.com/VrKZ3jG.png VoteYea or VoteNay ? OuO");
  53.         }
  54.         else if(message.equalsIgnoreCase("!momodrawings")) {
  55.             sendMessage(channel, "http://imgur.com/a/Asncw VoHiYo");
  56.         }
  57.  
  58.     }
  59.  
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement