Skip to content

A simple bot that can connect to twitch irc and read in commands and perform virtual keypresses.

Notifications You must be signed in to change notification settings

nhold/TwitchCommanderBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

TwitchCommanderBot

A simple bot that can connect to twitch irc and read in commands and perform virtual keypresses.

Usage

You can look in the TwitchTest project Main to see how to use it, but here is an overview.

  • Create a bot

TwitchCommanderBot bot = new TwitchCommanderBot("[TwitchUserNameHere]");

  • Add a command to the bot

bot.AddCommand("a", KeyEvent.VK_Z);

  • Create the command task (This will use the TwitchCommanderBots GetNextCommand in it's run method)

CommandTask cmdTask = new CommandTask(bot);

  • Connect the bot

try { bot.connect("199.9.250.229", 6667, "[oauth:here]"); } catch (IOException | IrcException e) { e.printStackTrace(); }

  • Create the timer for the command task and schedule it

Timer timer = new Timer(); timer.schedule(cmdTask, 900, 900);

  • Make the bot join the channel

bot.joinChannel();

About

A simple bot that can connect to twitch irc and read in commands and perform virtual keypresses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages