public class ServerPingEvent extends Event
CoreHooks
automatically responds correctly. Unless CoreHooks
is removed from the
bot's ListenerManager
,
Listeners of this event should not send a response as the user will
get two responses
Constructor and Description |
---|
ServerPingEvent(PircBotX bot,
String response) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getResponse()
The response that should be given back in your PONG.
|
int |
hashCode() |
void |
respond(String response)
Respond with a raw line to the server
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
public void respond(String response)
respond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public String getResponse()
Copyright © 2010–2020 Leon Blakey. All rights reserved.