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
Whispers
Leonardo Mariscal edited this page May 2, 2017
·
2 revisions
To add whispers to your bot, you will need the object of the Bot. We will be doing this on the Bot class.
When a whisper is recived this method will be called, so you will overwrite it
@Override
public void onWhisper(User user, String message) {
}
You can also send whispers with whisper("") but you will need to be in at least one channel to do this.
@Override
public void onCommand(User user, Channel channel, String command) {
if (command.equals("test")) {
this.whisper(user, "This is a whisper");
}
}
Lib Made by CavariuX. All rights Reserved © 2015 Twitch Interactive, Inc.
- Automatic Messages
- Custom Commands
- Coins System