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 Apr 22, 2017 · 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.
The channel should be all lowercase

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();
		bot.joinChannel("#channel");
		bot.start();
	}
}

Next Topic:

Send Messages


Introduction


Medium Stuff


Extra

  • Automatic Messages
  • Custom Commands
  • Coins System

Clone this wiki locally