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

Channel Object

Leonardo Mariscal edited this page Jun 18, 2015 · 1 revision

In this tutorial we will be looking on how to manage a Channel.

To get a Channeluse the Method

Channel.getChannel(String channel, TwitchBot bot);

To see if its Mod

Channel#.isMod(User user);

And many other common commands in twitch like Ban, timeout, etc. You can also host/unhost and alot of things, please check the documentation

To see if the User is following a channel.

Channel#.isFollowing(User user);

To see if the User is subscribed to a channel. This Method is in test cause I cant test it, please send feedback

Channel#.isSubscribed(User user);

To see if the channel is Live and it will return a boolean

Channel#.isLive();

You can get Info about the stream but first check if its live

Channel#.getGame() | Channel#.getTitle();

If you are new to Java or coding you may not be familiarized to Object# that means that you need a variable of that object to get that method


Introduction


Medium Stuff


Extra

  • Automatic Messages
  • Custom Commands
  • Coins System

Clone this wiki locally