Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Send Messages

Leonardo Mariscal edited this page Jun 18, 2015 · 4 revisions
We will be using the code from previous Tutorials.

You will need the object of the Bot. We will be doing this on the Main class.

bot.sendMessage("Hi, Im connected!", channel);

Complete code:

package tk.cavariux.twitchirctest.Core;

import java.io.IOException;

import com.cavariux.twitchirc.Chat.Channel;

public class Main {

	public static void main(String[] args) {
		CavsBot bot = new CavsBot();
		bot.connect();
		Channel channel = bot.joinChannel("#channel");
		bot.sendMessage("Hi, Im connected!", channel);
		bot.start();
	}
}

Next Topic:

Reply to Messages


Introduction


Medium Stuff


Extra

  • Automatic Messages
  • Custom Commands
  • Coins System

Clone this wiki locally