public static class Configuration.Builder extends Object
Configuration
.Constructor and Description |
---|
Builder()
Create with defaults that work in most situations and IRC servers
|
Builder(Configuration.Builder otherBuilder)
Copy values from another builder.
|
Builder(Configuration configuration)
Copy values from an existing Configuration.
|
Modifier and Type | Method and Description |
---|---|
Configuration.Builder |
addAutoJoinChannel(String channel)
Add a channel to join on connect
|
Configuration.Builder |
addAutoJoinChannel(String channel,
String key)
Utility method for
|
Configuration.Builder |
addAutoJoinChannels(Iterable<String> channels) |
Configuration.Builder |
addCapHandler(CapHandler handler)
Add a cap handler
|
Configuration.Builder |
addCapHandlers(Iterable<CapHandler> handlers)
Add a collection of cap handlers
|
Configuration.Builder |
addListener(Listener listener)
Add a listener to the current ListenerManager
|
Configuration.Builder |
addListeners(Iterable<Listener> listeners)
Add a collection of listeners to the current ListenerManager
|
Configuration.Builder |
addServer(Configuration.ServerEntry serverEntry) |
Configuration.Builder |
addServer(String server) |
Configuration.Builder |
addServer(String server,
int port) |
Configuration.Builder |
addServers(Iterable<Configuration.ServerEntry> serverEnteries) |
Configuration |
buildConfiguration()
Builds a Configuration instance from the information in this builder
|
Configuration |
buildForServer(String hostname)
Create a new builder with the specified hostname then build a
configuration.
|
Configuration |
buildForServer(String hostname,
int port)
Create a new builder with the specified hostname and port then
build a configuration.
|
Configuration |
buildForServer(String hostname,
int port,
String password)
Create a new builder with the specified hostname, port, and
password then build a configuration.
|
boolean |
equals(Object o) |
Map<String,String> |
getAutoJoinChannels()
Map of channels and keys to automatically join upon connecting.
|
int |
getAutoReconnectAttempts()
Number of times to attempt to reconnect, default 5.
|
Delay |
getAutoReconnectDelay()
Delay in milliseconds between reconnect attempts, default 0.
|
Configuration.BotFactory |
getBotFactory()
The
Configuration.BotFactory to use |
List<CapHandler> |
getCapHandlers()
IRCv3 CAP features to try to use, default enables multi-prefix and
away-notify but ignoring if the server doesn't support them
|
List<ChannelModeHandler> |
getChannelModeHandlers()
Handlers for channel modes, defaults to built-in handlers which cover
basic modes that are generally supported on most IRC servers
|
String |
getChannelPrefixes()
Allowed channel prefix characters, default
#&+! |
int |
getDccAcceptTimeout()
Timeout for user to accept a sent DCC request.
|
InetAddress |
getDccLocalAddress()
The local address to bind DCC connections to, defaults to null (which
will be figured out at runtime)
|
List<Integer> |
getDccPorts()
Ports to allow DCC incoming connections, recommended to set multiple
as DCC connections will be rejected if no free port can be found
|
InetAddress |
getDccPublicAddress()
The public address advertised to other users, defaults to null (which
will be figured out at runtime)
|
int |
getDccResumeAcceptTimeout()
Timeout for a user to accept a resumed DCC request.
|
int |
getDccTransferBufferSize()
Size of the DCC file transfer buffer, default 1024 bytes
|
Charset |
getEncoding()
Charset encoding to use for connection, defaults to
Charset.defaultCharset() |
String |
getFinger()
CTCP finger response
|
<M extends ListenerManager> |
getListenerManager()
Returns the current ListenerManager in use by this bot.
|
InetAddress |
getLocalAddress()
Address to bind to when connecting to IRC server, default null
|
Locale |
getLocale()
Locale to use for connection, defaults to
Locale.getDefault() |
String |
getLogin()
The login to be used for the IRC connection (nick!login@host),
default PircBotX
|
int |
getMaxLineLength()
Maximum line length of IRC server, defaults 512 characters
|
Delay |
getMessageDelay()
Millisecond delay between sending messages, default 1000 milliseconds
|
String |
getName()
The nick to be used for the IRC connection (nick!login@host), must
not be blank
|
String |
getNickservCustomMessage()
Some irc servers require a custom identify string.
|
String |
getNickservNick()
The nick of the nickserv service account, default "nickserv".
|
String |
getNickservOnSuccess()
Case-insensitive message a user with
setNickservNick(java.lang.String) in its hostmask will
always contain when we have successfully identified, defaults to "you
are now" which which matches all of the following known server
responses:
ircd-seven (freenode) - You are now identified for PircBotX
Unreal (swiftirc) - Password accepted - you are now
recognized.
InspIRCd (mozilla) - You are now logged in as PircBotX
|
String |
getNickservPassword()
Password to authenticate against NICKSERV, default null (will not try
to identify)
|
String |
getRealName()
The realName/fullname used for WHOIS info, defaults to version
|
String |
getServerPassword()
Password for IRC server, default null
|
List<Configuration.ServerEntry> |
getServers()
List of servers to connect to, easily add with the addServer methods
|
int |
getSocketConnectTimeout() |
SocketFactory |
getSocketFactory()
Socket factory for connections, defaults to
SocketFactory.getDefault() |
int |
getSocketTimeout()
Milliseconds to wait with no data from the IRC server before sending
a PING request to check if the socket is still alive, default 5
minutes (1000x60x5=300,000 milliseconds)
|
String |
getUserLevelPrefixes()
Supported channel prefixes that restrict a sent message to users with
this mode, eg
PRIVMSG +#channel :hello will only send a
message to voiced or higher users, default +@%&~! |
String |
getVersion()
CTCP version response.
|
InetAddress |
getWebIrcAddress()
IP address of WEBIRC connection, must be set if WEBIRC is enabled
|
String |
getWebIrcHostname()
Hostname of WEBIRC connection, must not be blank if WEBIRC is enabled
|
String |
getWebIrcPassword()
Password of WEBIRC connection, must not be blank if WEBIRC is enabled
|
String |
getWebIrcUsername()
Username of WEBIRC connection, must not be blank if WEBIRC is enabled
|
int |
hashCode() |
boolean |
isAutoNickChange()
Enable or disable automatic nick changing if a nick is in use by
adding a number to the end, default false which will throw a
IrcException if the nick is already in use on the server |
boolean |
isAutoReconnect()
Enable or disable automatic reconnecting, default false.
|
boolean |
isAutoSplitMessage()
Enable or disable automatic message splitting to fit
getMaxLineLength() to prevent the IRC server from possibly
truncating or rejecting the line, default true. |
boolean |
isCapEnabled()
Enable or disable CAP handling, defaults true.
|
boolean |
isDccFilenameQuotes()
If true sends filenames in quotes, otherwise uses underscores,
default enabled.
|
boolean |
isDccPassiveRequest()
Send DCC requests as passive/reverse requests if not specified
otherwise, default false
|
boolean |
isIdentServerEnabled()
Enable or disable use of an existing
IdentServer , default
false. |
boolean |
isNickservDelayJoin()
Delay joining channels until were identified to nickserv, default
false
|
boolean |
isOnJoinWhoEnabled()
Enable or disable sending "WHO #channel" upon joining a channel and
rely only on the NAMES response
|
boolean |
isShutdownHookEnabled()
Enable or disable creating a JVM shutdown hook which will properly
QUIT the IRC server and shutdown the bot, default true
|
boolean |
isSnapshotsEnabled()
Enable creation of snapshots, default true.
|
boolean |
isUserModeHideRealHost()
Sets mode +x on the bot, to hide the real hostname, default = false
|
boolean |
isWebIrcEnabled()
Enable or disable sending WEBIRC line on connect, default disabled
|
void |
replaceCoreHooksListener(CoreHooks extended) |
Configuration.Builder |
setAutoNickChange(boolean autoNickChange)
Enable or disable automatic nick changing if a nick is in use by
adding a number to the end, default false which will throw a
IrcException if the nick is already in use on the server |
Configuration.Builder |
setAutoReconnect(boolean autoReconnect)
Enable or disable automatic reconnecting, default false.
|
Configuration.Builder |
setAutoReconnectAttempts(int autoReconnectAttempts)
Number of times to attempt to reconnect, default 5.
|
Configuration.Builder |
setAutoReconnectDelay(Delay autoReconnectDelay)
Delay in milliseconds between reconnect attempts, default 0.
|
Configuration.Builder |
setAutoSplitMessage(boolean autoSplitMessage)
Enable or disable automatic message splitting to fit
getMaxLineLength() to prevent the IRC server from possibly
truncating or rejecting the line, default true. |
Configuration.Builder |
setBotFactory(Configuration.BotFactory botFactory)
The
Configuration.BotFactory to use |
Configuration.Builder |
setCapEnabled(boolean capEnabled)
Enable or disable CAP handling, defaults true.
|
Configuration.Builder |
setChannelPrefixes(String channelPrefixes)
Allowed channel prefix characters, default
#&+! |
Configuration.Builder |
setDccAcceptTimeout(int dccAcceptTimeout)
Timeout for user to accept a sent DCC request, defaults to
getSocketTimeout() |
Configuration.Builder |
setDccFilenameQuotes(boolean dccFilenameQuotes)
If true sends filenames in quotes, otherwise uses underscores,
default enabled.
|
Configuration.Builder |
setDccLocalAddress(InetAddress dccLocalAddress)
The local address to bind DCC connections to, defaults to null (which
will be figured out at runtime)
|
Configuration.Builder |
setDccPassiveRequest(boolean dccPassiveRequest)
Send DCC requests as passive/reverse requests if not specified
otherwise, default false
|
Configuration.Builder |
setDccPorts(List<Integer> dccPorts)
Ports to allow DCC incoming connections, recommended to set multiple
as DCC connections will be rejected if no free port can be found
|
Configuration.Builder |
setDccPublicAddress(InetAddress dccPublicAddress)
The public address advertised to other users, defaults to null (which
will be figured out at runtime)
|
Configuration.Builder |
setDccResumeAcceptTimeout(int dccResumeAcceptTimeout)
Timeout for a user to accept a resumed DCC request, defaults to
getDccResumeAcceptTimeout() |
Configuration.Builder |
setDccTransferBufferSize(int dccTransferBufferSize)
Size of the DCC file transfer buffer, default 1024 bytes
|
Configuration.Builder |
setEncoding(Charset encoding)
Charset encoding to use for connection, defaults to
Charset.defaultCharset() |
Configuration.Builder |
setFinger(String finger)
CTCP finger response
|
Configuration.Builder |
setIdentServerEnabled(boolean identServerEnabled)
Enable or disable use of an existing
IdentServer , default
false. |
Configuration.Builder |
setListenerManager(ListenerManager listenerManager)
Sets a new ListenerManager.
|
Configuration.Builder |
setLocalAddress(InetAddress localAddress)
Address to bind to when connecting to IRC server, default null
|
Configuration.Builder |
setLocale(Locale locale)
Locale to use for connection, defaults to
Locale.getDefault() |
Configuration.Builder |
setLogin(String login)
The login to be used for the IRC connection (nick!login@host),
default PircBotX
|
Configuration.Builder |
setMaxLineLength(int maxLineLength)
Maximum line length of IRC server, defaults 512 characters
|
Configuration.Builder |
setMessageDelay(Delay messageDelay)
Millisecond delay between sending messages, default 1000 milliseconds
|
Configuration.Builder |
setName(String name)
The nick to be used for the IRC connection (nick!login@host), must
not be blank
|
Configuration.Builder |
setNickservCustomMessage(String nickservCustomMessage)
Some irc servers require a custom identify string.
|
Configuration.Builder |
setNickservDelayJoin(boolean nickservDelayJoin)
Delay joining channels until were identified to nickserv, default
false
|
Configuration.Builder |
setNickservNick(String nickservNick)
The nick of the nickserv service account, default "nickserv".
|
Configuration.Builder |
setNickservOnSuccess(String nickservOnSuccess)
Case-insensitive message a user with
setNickservNick(java.lang.String) in its hostmask will
always contain when we have successfully identified, defaults to "you
are now" which which matches all of the following known server
responses:
ircd-seven (freenode) - You are now identified for PircBotX
Unreal (swiftirc) - Password accepted - you are now
recognized.
InspIRCd (mozilla) - You are now logged in as PircBotX
|
Configuration.Builder |
setNickservPassword(String nickservPassword)
Password to authenticate against NICKSERV, default null (will not try
to identify)
|
Configuration.Builder |
setOnJoinWhoEnabled(boolean onJoinWhoEnabled)
Enable or disable sending "WHO #channel" upon joining a channel and
rely only on the NAMES response
|
Configuration.Builder |
setRealName(String realName)
The realName/fullname used for WHOIS info, defaults to version
|
Configuration.Builder |
setServer(String hostname)
Deprecated.
Use
addServer(java.lang.String) ,
will be removed in future releases |
Configuration.Builder |
setServer(String hostname,
int port)
Deprecated.
Use
addServer(java.lang.String, int) ,
will be removed in future releases |
Configuration.Builder |
setServerHostname(String hostname)
Deprecated.
Use
addServer(java.lang.String) ,
will be removed in future releases |
Configuration.Builder |
setServerPassword(String serverPassword)
Password for IRC server, default null
|
Configuration.Builder |
setServerPort(int port)
Deprecated.
Use
addServer(java.lang.String, int) ,
will be removed in future releases |
Configuration.Builder |
setServers(List<Configuration.ServerEntry> servers)
List of servers to connect to, easily add with the addServer methods
|
Configuration.Builder |
setShutdownHookEnabled(boolean shutdownHookEnabled)
Enable or disable creating a JVM shutdown hook which will properly
QUIT the IRC server and shutdown the bot, default true
|
Configuration.Builder |
setSnapshotsEnabled(boolean snapshotsEnabled)
Enable creation of snapshots, default true.
|
Configuration.Builder |
setSocketConnectTimeout(int socketConnectTimeout)
Milliseconds to wait to connect to an IRC server address before
trying the next address, default
getSocketTimeout() |
Configuration.Builder |
setSocketFactory(SocketFactory socketFactory)
Socket factory for connections, defaults to
SocketFactory.getDefault() |
Configuration.Builder |
setSocketTimeout(int socketTimeout)
Milliseconds to wait with no data from the IRC server before sending
a PING request to check if the socket is still alive, default 5
minutes (1000x60x5=300,000 milliseconds)
|
Configuration.Builder |
setUserLevelPrefixes(String userLevelPrefixes)
Supported channel prefixes that restrict a sent message to users with
this mode, eg
PRIVMSG +#channel :hello will only send a
message to voiced or higher users, default +@%&~! |
Configuration.Builder |
setUserModeHideRealHost(boolean userModeHideRealHost)
Sets mode +x on the bot, to hide the real hostname, default = false
|
Configuration.Builder |
setVersion(String version)
CTCP version response.
|
Configuration.Builder |
setWebIrcAddress(InetAddress webIrcAddress)
IP address of WEBIRC connection, must be set if WEBIRC is enabled
|
Configuration.Builder |
setWebIrcEnabled(boolean webIrcEnabled)
Enable or disable sending WEBIRC line on connect, default disabled
|
Configuration.Builder |
setWebIrcHostname(String webIrcHostname)
Hostname of WEBIRC connection, must not be blank if WEBIRC is enabled
|
Configuration.Builder |
setWebIrcPassword(String webIrcPassword)
Password of WEBIRC connection, must not be blank if WEBIRC is enabled
|
Configuration.Builder |
setWebIrcUsername(String webIrcUsername)
Username of WEBIRC connection, must not be blank if WEBIRC is enabled
|
String |
toString() |
public Builder()
public Builder(Configuration configuration)
configuration
- Configuration to copy values frompublic Builder(Configuration.Builder otherBuilder)
otherBuilder
- public int getSocketConnectTimeout()
public int getDccAcceptTimeout()
getSocketTimeout()
public int getDccResumeAcceptTimeout()
getDccResumeAcceptTimeout()
public Configuration.Builder addCapHandlers(@NonNull Iterable<CapHandler> handlers)
handlers
- getCapHandlers()
public Configuration.Builder addCapHandler(CapHandler handler)
handler
- getCapHandlers()
public Configuration.Builder addListeners(@NonNull Iterable<Listener> listeners)
listeners
- getListenerManager()
public Configuration.Builder addListener(Listener listener)
listener
- getListenerManager()
public Configuration.Builder addAutoJoinChannels(@NonNull Iterable<String> channels)
public Configuration.Builder addAutoJoinChannel(@NonNull String channel)
channel
- getAutoJoinChannels()
public Configuration.Builder addAutoJoinChannel(@NonNull String channel, @NonNull String key)
getAutoJoinChannels()
.put(channel,
key)
channel
- @Deprecated public Configuration.Builder setServer(String hostname)
addServer(java.lang.String)
,
will be removed in future releases@Deprecated public Configuration.Builder setServer(String hostname, int port)
addServer(java.lang.String, int)
,
will be removed in future releases@Deprecated public Configuration.Builder setServerHostname(String hostname)
addServer(java.lang.String)
,
will be removed in future releases@Deprecated public Configuration.Builder setServerPort(int port)
addServer(java.lang.String, int)
,
will be removed in future releasespublic Configuration.Builder addServer(@NonNull String server)
public Configuration.Builder addServer(@NonNull String server, int port)
public Configuration.Builder addServer(@NonNull Configuration.ServerEntry serverEntry)
public Configuration.Builder addServers(@NonNull Iterable<Configuration.ServerEntry> serverEnteries)
public Configuration.Builder setListenerManager(ListenerManager listenerManager)
CoreHooks
are
added when this method is called. If you do not want this, remove
CoreHooks with
ListenerManager.removeListener(org.pircbotx.hooks.Listener)
listenerManager
- The listener managerpublic void replaceCoreHooksListener(CoreHooks extended)
public <M extends ListenerManager> M getListenerManager()
ListenerManager
) is lazy loaded
here unless one was already setpublic Configuration buildConfiguration()
public Configuration buildForServer(String hostname)
hostname
- public Configuration buildForServer(String hostname, int port)
hostname
- public Configuration buildForServer(String hostname, int port, String password)
hostname
- @Generated(value="lombok") public boolean isWebIrcEnabled()
@Generated(value="lombok") public String getWebIrcUsername()
@Generated(value="lombok") public String getWebIrcHostname()
@Generated(value="lombok") public InetAddress getWebIrcAddress()
@Generated(value="lombok") public String getWebIrcPassword()
@Generated(value="lombok") public String getName()
@Generated(value="lombok") public String getLogin()
@Generated(value="lombok") public String getVersion()
@Generated(value="lombok") public String getFinger()
@Generated(value="lombok") public String getRealName()
@Generated(value="lombok") public String getChannelPrefixes()
#&+!
@Generated(value="lombok") public String getUserLevelPrefixes()
PRIVMSG +#channel :hello
will only send a
message to voiced or higher users, default +@%&~!
@Generated(value="lombok") public boolean isSnapshotsEnabled()
GenericSnapshotEvent
(eg PartEvent,
QuitEvent) since the entire UserChannelDao with all of its users and
channels is cloned. This can optionally disabled by setting this to
false, however this makes all
GenericSnapshotEvent.getUserChannelDaoSnapshot()
calls return null.
In regular usage disabling snapshots is not necessary because there relatively few user QUITs and PARTs per second.
@Generated(value="lombok") public boolean isDccFilenameQuotes()
@Generated(value="lombok") public List<Integer> getDccPorts()
@Generated(value="lombok") public InetAddress getDccLocalAddress()
@Generated(value="lombok") public InetAddress getDccPublicAddress()
@Generated(value="lombok") public int getDccTransferBufferSize()
@Generated(value="lombok") public boolean isDccPassiveRequest()
@Generated(value="lombok") public List<Configuration.ServerEntry> getServers()
@Generated(value="lombok") public String getServerPassword()
@Generated(value="lombok") public SocketFactory getSocketFactory()
SocketFactory.getDefault()
@Generated(value="lombok") public InetAddress getLocalAddress()
@Generated(value="lombok") public Charset getEncoding()
Charset.defaultCharset()
@Generated(value="lombok") public Locale getLocale()
Locale.getDefault()
@Generated(value="lombok") public int getSocketTimeout()
@Generated(value="lombok") public int getMaxLineLength()
@Generated(value="lombok") public boolean isAutoSplitMessage()
getMaxLineLength()
to prevent the IRC server from possibly
truncating or rejecting the line, default true.@Generated(value="lombok") public boolean isAutoNickChange()
IrcException
if the nick is already in use on the server@Generated(value="lombok") public Delay getMessageDelay()
@Generated(value="lombok") public boolean isShutdownHookEnabled()
@Generated(value="lombok") public Map<String,String> getAutoJoinChannels()
@Generated(value="lombok") public boolean isOnJoinWhoEnabled()
@Generated(value="lombok") public boolean isIdentServerEnabled()
IdentServer
, default
false. Note that the IdentServer must be started separately or else
an exception will be thrownIdentServer
@Generated(value="lombok") public String getNickservPassword()
@Generated(value="lombok") public String getNickservOnSuccess()
setNickservNick(java.lang.String)
in its hostmask will
always contain when we have successfully identified, defaults to "you
are now" which which matches all of the following known server
responses:
@Generated(value="lombok") public String getNickservNick()
PircBotX.isNickservIdentified()
@Generated(value="lombok") public String getNickservCustomMessage()
PRIVMSG Q@CServe.quakenet.org :AUTH USER PASS
default = null@Generated(value="lombok") public boolean isNickservDelayJoin()
@Generated(value="lombok") public boolean isUserModeHideRealHost()
@Generated(value="lombok") public boolean isAutoReconnect()
PircBotX.stopBotReconnect()
when you do not
want the bot to reconnect anymore!@Generated(value="lombok") public Delay getAutoReconnectDelay()
@Generated(value="lombok") public int getAutoReconnectAttempts()
@Generated(value="lombok") public boolean isCapEnabled()
@Generated(value="lombok") public List<CapHandler> getCapHandlers()
@Generated(value="lombok") public List<ChannelModeHandler> getChannelModeHandlers()
@Generated(value="lombok") public Configuration.BotFactory getBotFactory()
Configuration.BotFactory
to use@Generated(value="lombok") public Configuration.Builder setWebIrcEnabled(boolean webIrcEnabled)
@Generated(value="lombok") public Configuration.Builder setWebIrcUsername(String webIrcUsername)
@Generated(value="lombok") public Configuration.Builder setWebIrcHostname(String webIrcHostname)
@Generated(value="lombok") public Configuration.Builder setWebIrcAddress(InetAddress webIrcAddress)
@Generated(value="lombok") public Configuration.Builder setWebIrcPassword(String webIrcPassword)
@Generated(value="lombok") public Configuration.Builder setName(String name)
@Generated(value="lombok") public Configuration.Builder setLogin(String login)
@Generated(value="lombok") public Configuration.Builder setVersion(String version)
@Generated(value="lombok") public Configuration.Builder setFinger(String finger)
@Generated(value="lombok") public Configuration.Builder setRealName(String realName)
@Generated(value="lombok") public Configuration.Builder setChannelPrefixes(String channelPrefixes)
#&+!
@Generated(value="lombok") public Configuration.Builder setUserLevelPrefixes(String userLevelPrefixes)
PRIVMSG +#channel :hello
will only send a
message to voiced or higher users, default +@%&~!
@Generated(value="lombok") public Configuration.Builder setSnapshotsEnabled(boolean snapshotsEnabled)
GenericSnapshotEvent
(eg PartEvent,
QuitEvent) since the entire UserChannelDao with all of its users and
channels is cloned. This can optionally disabled by setting this to
false, however this makes all
GenericSnapshotEvent.getUserChannelDaoSnapshot()
calls return null.
In regular usage disabling snapshots is not necessary because there relatively few user QUITs and PARTs per second.
@Generated(value="lombok") public Configuration.Builder setDccFilenameQuotes(boolean dccFilenameQuotes)
@Generated(value="lombok") public Configuration.Builder setDccPorts(List<Integer> dccPorts)
@Generated(value="lombok") public Configuration.Builder setDccLocalAddress(InetAddress dccLocalAddress)
@Generated(value="lombok") public Configuration.Builder setDccPublicAddress(InetAddress dccPublicAddress)
@Generated(value="lombok") public Configuration.Builder setDccAcceptTimeout(int dccAcceptTimeout)
getSocketTimeout()
@Generated(value="lombok") public Configuration.Builder setDccResumeAcceptTimeout(int dccResumeAcceptTimeout)
getDccResumeAcceptTimeout()
@Generated(value="lombok") public Configuration.Builder setDccTransferBufferSize(int dccTransferBufferSize)
@Generated(value="lombok") public Configuration.Builder setDccPassiveRequest(boolean dccPassiveRequest)
@Generated(value="lombok") public Configuration.Builder setServers(List<Configuration.ServerEntry> servers)
@Generated(value="lombok") public Configuration.Builder setServerPassword(String serverPassword)
@Generated(value="lombok") public Configuration.Builder setSocketFactory(SocketFactory socketFactory)
SocketFactory.getDefault()
@Generated(value="lombok") public Configuration.Builder setLocalAddress(InetAddress localAddress)
@Generated(value="lombok") public Configuration.Builder setEncoding(Charset encoding)
Charset.defaultCharset()
@Generated(value="lombok") public Configuration.Builder setLocale(Locale locale)
Locale.getDefault()
@Generated(value="lombok") public Configuration.Builder setSocketConnectTimeout(int socketConnectTimeout)
getSocketTimeout()
@Generated(value="lombok") public Configuration.Builder setSocketTimeout(int socketTimeout)
@Generated(value="lombok") public Configuration.Builder setMaxLineLength(int maxLineLength)
@Generated(value="lombok") public Configuration.Builder setAutoSplitMessage(boolean autoSplitMessage)
getMaxLineLength()
to prevent the IRC server from possibly
truncating or rejecting the line, default true.@Generated(value="lombok") public Configuration.Builder setAutoNickChange(boolean autoNickChange)
IrcException
if the nick is already in use on the server@Generated(value="lombok") public Configuration.Builder setMessageDelay(Delay messageDelay)
@Generated(value="lombok") public Configuration.Builder setShutdownHookEnabled(boolean shutdownHookEnabled)
@Generated(value="lombok") public Configuration.Builder setOnJoinWhoEnabled(boolean onJoinWhoEnabled)
@Generated(value="lombok") public Configuration.Builder setIdentServerEnabled(boolean identServerEnabled)
IdentServer
, default
false. Note that the IdentServer must be started separately or else
an exception will be thrownIdentServer
@Generated(value="lombok") public Configuration.Builder setNickservPassword(String nickservPassword)
@Generated(value="lombok") public Configuration.Builder setNickservOnSuccess(String nickservOnSuccess)
setNickservNick(java.lang.String)
in its hostmask will
always contain when we have successfully identified, defaults to "you
are now" which which matches all of the following known server
responses:
PircBotX.isNickservIdentified()
,
setNickservNick(java.lang.String)
@Generated(value="lombok") public Configuration.Builder setNickservNick(String nickservNick)
PircBotX.isNickservIdentified()
@Generated(value="lombok") public Configuration.Builder setNickservCustomMessage(String nickservCustomMessage)
PRIVMSG Q@CServe.quakenet.org :AUTH USER PASS
default = null@Generated(value="lombok") public Configuration.Builder setNickservDelayJoin(boolean nickservDelayJoin)
@Generated(value="lombok") public Configuration.Builder setUserModeHideRealHost(boolean userModeHideRealHost)
@Generated(value="lombok") public Configuration.Builder setAutoReconnect(boolean autoReconnect)
PircBotX.stopBotReconnect()
when you do not
want the bot to reconnect anymore!@Generated(value="lombok") public Configuration.Builder setAutoReconnectDelay(Delay autoReconnectDelay)
@Generated(value="lombok") public Configuration.Builder setAutoReconnectAttempts(int autoReconnectAttempts)
@Generated(value="lombok") public Configuration.Builder setCapEnabled(boolean capEnabled)
@Generated(value="lombok") public Configuration.Builder setBotFactory(Configuration.BotFactory botFactory)
Configuration.BotFactory
to useCopyright © 2010–2020 Leon Blakey. All rights reserved.