public class SimpleBot extends ChaturBot
Constructor and Description |
---|
SimpleBot(java.lang.String roomName,
java.lang.String URL,
java.lang.String connectAuth) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
protected void |
onNotify(Notification notification)
Called when an announcement or tip is sent.
|
protected void |
onRoomMsg(RoomMessage message)
Called when a normal chat message is sent.
|
protected void |
onSilence(java.lang.String arg0,
java.lang.String arg1)
Called when a user is timed out by a moderator.
|
protected void |
onTitleChange(java.lang.String newTitle)
Called on stream title change; empty strings are common because of
Chaturbate's implementation.
|
getRoomCount, getRoomName, isAuthenticated, onAuthResponse, onNotifyGroupShowCancel, start, stop
public SimpleBot(java.lang.String roomName, java.lang.String URL, java.lang.String connectAuth) throws java.io.IOException, com.neovisionaries.ws.client.WebSocketException
java.io.IOException
com.neovisionaries.ws.client.WebSocketException
protected void onRoomMsg(RoomMessage message)
ChaturBot
protected void onTitleChange(java.lang.String newTitle)
ChaturBot
onTitleChange
in class ChaturBot
protected void onNotify(Notification notification)
ChaturBot
Notification
for
more info.protected void onSilence(java.lang.String arg0, java.lang.String arg1)
ChaturBot
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception