This repository has been archived by the owner on Sep 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Create Your Bot
Leonardo Mariscal edited this page Apr 30, 2017
·
9 revisions
Make a Class with the name of your Bot (This Case "CavsBot") and Extend it to TwitchBot.
package tk.cavariux.twitchirctest.Core;
import com.cavariux.twitchirc.Core.TwitchBot;
public class CavsBot extends TwitchBot
{
}
package tk.cavariux.twitchirctest.Core;
import com.cavariux.twitchirc.Core.LightTwitchBot;
public class CavsBot extends LightTwitchBot
{
}
Get an Oauth Key from twitchapps: twitchapps.com/tmi/ your OauthKey may Look like this: "oauth:9kvd020oj3wgcrsyafoaofrt3uv7bi"
Then Make a constructor with your Username and your OauthKey:
public CavsBot ()
{
this.setUsername("YourUsername"); //this.setUsername("CavsBot");
this.setOauth_Key("YourOauthKey"); //this.setOauth_Key("oauth:9kvd020oj3wgcrsyafoaofrt3uv7bi");
}
Then Make a Main Class and create an Object of your Bot
package tk.cavariux.twitchirctest.Core;
public class Main {
public static void main(String[] args) {
CavsBot bot = new CavsBot();
}
}
I changed the imports from 'tk.cavariux' to 'com.cavariux' cause I bought the domain
Lib Made by CavariuX. All rights Reserved © 2015 Twitch Interactive, Inc.
- Automatic Messages
- Custom Commands
- Coins System