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

Join a Channel

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

To join a channel just use the bot method "joinchannel":

bot.joinChannel("#channel");

You can join a channel when you want.

Complete Code:

package tk.cavariux.twitchirctest.Core;

import java.io.IOException;

import tk.cavariux.twitchirc.Chat.Channel;

public class Main {

	public static void main(String[] args) {
		CavsBot bot = new CavsBot();
		bot.connect();
		bot.joinChannel("#channel");
		bot.start();
	}
}

Next Topic:

Send Messages


Introduction


Medium Stuff


Extra

  • Automatic Messages
  • Custom Commands
  • Coins System

Clone this wiki locally