Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Main Class
- public class Config {
- //public static String currentGame = "League of Legends";
- public static void main(String[] args) throws Exception {
- String channel = "#destiny";
- // Define the Bot
- TwitchBot bot = new TwitchBot();
- bot.setVerbose(true);
- bot.connect("irc.twitch.tv", 6667,"oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
- bot.joinChannel(channel);
- //bot.sendRawLineViaQueue("CAP REQ :twitch.tv/commands");
- }
- }
- _________________________________________________________________________________________
- // MoMobot
- import org.jibble.pircbot.*;
- public class TwitchBot extends PircBot {
- public TwitchBot() {
- this.setName("MoMoOuO_bot"); // Create a new twitch acct
- this.isConnected();
- sendRawLineViaQueue("CAP REQ :twitch.tv/commands");
- }
- public void onMessage(String channel, String sender, String login, String hostname, String message) {
- if(message.equalsIgnoreCase("!momoabout")) {
- sendMessage(channel, "/w " + sender + " Hey Guys! OuO");
- }
- else if(message.equalsIgnoreCase("!momohelp")) {
- sendMessage(channel, "List of commands: !momolewds, !momomilfs, !momololis, !lewdornot, !momodrawings");
- }
- else if(message.equalsIgnoreCase("!momolewds")) {
- sendMessage(channel, "Work in progress. OnO");
- }
- else if(message.equalsIgnoreCase("!momomilfs")) {
- sendMessage(channel, "http://i.imgur.com/GvzdWlT Work in progress. OnO");
- }
- else if(message.equalsIgnoreCase("!momololis")) {
- sendMessage(channel, "http://i.imgur.com/3A61haL.gif loliDance");
- }
- else if(message.equalsIgnoreCase("!lewdornot")) {
- sendMessage(channel, "LEWD OR NOT? http://i.imgur.com/VrKZ3jG.png VoteYea or VoteNay ? OuO");
- }
- else if(message.equalsIgnoreCase("!momodrawings")) {
- sendMessage(channel, "http://imgur.com/a/Asncw VoHiYo");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement