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, stoppublic SimpleBot(java.lang.String roomName,
java.lang.String URL,
java.lang.String connectAuth)
throws java.io.IOException,
com.neovisionaries.ws.client.WebSocketException
java.io.IOExceptioncom.neovisionaries.ws.client.WebSocketExceptionprotected void onRoomMsg(RoomMessage message)
ChaturBotprotected void onTitleChange(java.lang.String newTitle)
ChaturBotonTitleChange in class ChaturBotprotected void onNotify(Notification notification)
ChaturBotNotification for
more info.protected void onSilence(java.lang.String arg0,
java.lang.String arg1)
ChaturBotpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception