Index

A B C E G I J M N O P R S U V 
All Classes and Interfaces|All Packages

A

addCommandListener(CommandListener) - Method in class io.github.unknowncoder56.javaslc.Bot
Adds a CommandListener to the bot.
addCommandListener(CommandListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Adds a command listener.
addMessageListener(MessageListener) - Method in class io.github.unknowncoder56.javaslc.Bot
Adds a MessageListener to the bot.
addMessageListener(MessageListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Adds a message listener.

B

Bot - Class in io.github.unknowncoder56.javaslc
The main class of the library containing all important methods, like to run the bot.
Bot.ChangeKey - Enum Class in io.github.unknowncoder56.javaslc
The enum containing all possible property change keys.
BotBuilder - Class in io.github.unknowncoder56.javaslc
A builder class to build a Bot instance.
build() - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Builds the bot and returns a Bot instance constructed with the specified values.

C

change(Bot.ChangeKey, String) - Method in class io.github.unknowncoder56.javaslc.Bot
This method changes a bot property defined in the Bot.ChangeKey enum.
CommandContext - Class in io.github.unknowncoder56.javaslc
A class to create a context object which contains details about the command like message, owner (author), server ID, Bot instance, command name and command arguments.
CommandContext(JsonObject, String, Bot, String) - Constructor for class io.github.unknowncoder56.javaslc.CommandContext
Constructor to create an instance of the class for a command without arguments.
CommandContext(JsonObject, String, Bot, String, String[]) - Constructor for class io.github.unknowncoder56.javaslc.CommandContext
Constructor to create an instance of the class for a command with arguments.
CommandListener - Interface in io.github.unknowncoder56.javaslc
An interface to implement the method for receiving command (messages sent with the currently set bot prefix) events.

E

errorListener - Variable in class io.github.unknowncoder56.javaslc.User
The ErrorListener for the instance.
ErrorListener - Interface in io.github.unknowncoder56.javaslc
An interface to implement the method for receiving error events.

G

getAccountCreationDate() - Method in class io.github.unknowncoder56.javaslc.User
Gets the account creation LocalDateTime of the user.
getArguments() - Method in class io.github.unknowncoder56.javaslc.CommandContext
Gets the array of the arguments supplied with the command.
getBot() - Method in class io.github.unknowncoder56.javaslc.MessageContext
Gets the Bot which received the message.
getBotUserId() - Method in class io.github.unknowncoder56.javaslc.Bot
Gets the user ID of the bot.
getCommand() - Method in class io.github.unknowncoder56.javaslc.CommandContext
Gets the command name of the command received.
getCommandListeners() - Method in class io.github.unknowncoder56.javaslc.Bot
Gets the list of CommandListeners of the bot.
getErrorListener() - Method in class io.github.unknowncoder56.javaslc.User
Gets the ErrorListener of this instance.
getJoinedServerIds() - Method in class io.github.unknowncoder56.javaslc.User
Gets the IDs of the servers joined by the user.
getKeyString() - Method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
Gets the key string of the enum value.
getLabelJsonObject() - Method in class io.github.unknowncoder56.javaslc.User
Gets the label JsonObject of the user.
getMessageListeners() - Method in class io.github.unknowncoder56.javaslc.Bot
Gets the list of MessageListeners of the bot.
getNickname() - Method in class io.github.unknowncoder56.javaslc.User
Gets the nickname of the user.
getOwner() - Method in class io.github.unknowncoder56.javaslc.MessageContext
Gets the message owner.
getPrefix() - Method in class io.github.unknowncoder56.javaslc.Bot
Gets the prefix of the bot.
getProfileImageUrl() - Method in class io.github.unknowncoder56.javaslc.User
Gets the profile image URL String of the user.
getServerId() - Method in class io.github.unknowncoder56.javaslc.MessageContext
Gets the server ID of the server where the message was sent.
getStartListener() - Method in class io.github.unknowncoder56.javaslc.Bot
Gets the StartListener of the bot.
getText() - Method in class io.github.unknowncoder56.javaslc.MessageContext
Gets the message text.
getUserId() - Method in class io.github.unknowncoder56.javaslc.User
Gets the ID of the user.
getUsername() - Method in class io.github.unknowncoder56.javaslc.User
Gets the username of the user.

I

io.github.unknowncoder56.javaslc - package io.github.unknowncoder56.javaslc
 
isBot() - Method in class io.github.unknowncoder56.javaslc.User
Gets whether the user is a bot.

J

join(String) - Method in class io.github.unknowncoder56.javaslc.Bot
This method joins a server if not already joined by the bot.

M

MessageContext - Class in io.github.unknowncoder56.javaslc
A class to create a context object which contains details about the message like message text, owner (author), server ID and Bot instance.
MessageContext(JsonObject, String, Bot) - Constructor for class io.github.unknowncoder56.javaslc.MessageContext
Constructor to create an instance of the class for a message.
MessageListener - Interface in io.github.unknowncoder56.javaslc
An interface to implement the method for receiving message events.

N

newInstance() - Static method in class io.github.unknowncoder56.javaslc.BotBuilder
Returns a new BotBuilder instance.
NICKNAME - Enum constant in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
The key to change the nickname of the bot.

O

onCommand(CommandContext) - Method in interface io.github.unknowncoder56.javaslc.CommandListener
Method to implement for receiving command events.
onError(Exception, String) - Method in interface io.github.unknowncoder56.javaslc.ErrorListener
Method to implement for receiving error events.
onMessage(MessageContext) - Method in interface io.github.unknowncoder56.javaslc.MessageListener
Method to implement for receiving message events.
onStart() - Method in interface io.github.unknowncoder56.javaslc.StartListener
Method to implement for receiving the bot start event.

P

PROFILE_IMAGE - Enum constant in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
The key to change the profile image of the bot.

R

run() - Method in class io.github.unknowncoder56.javaslc.Bot
The method to run the bot.

S

send(String) - Method in class io.github.unknowncoder56.javaslc.MessageContext
This method sends a message text to a server directly from where the message originated.
send(String, String) - Method in class io.github.unknowncoder56.javaslc.Bot
This method sends a message text to a server if the bot is in it.
setBotUserId(String) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Sets the bot user ID.
setErrorListener(ErrorListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Sets the error listener.
setErrorListener(ErrorListener) - Method in class io.github.unknowncoder56.javaslc.User
Sets the ErrorListener of this instance.
setPrefix(String) - Method in class io.github.unknowncoder56.javaslc.Bot
Sets the prefix of the bot.
setPrefix(String) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Sets the bot prefix.
setStartListener(StartListener) - Method in class io.github.unknowncoder56.javaslc.Bot
Sets the StartListener of the bot.
setStartListener(StartListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Sets the start listener.
setToken(String) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
Sets the bot token.
StartListener - Interface in io.github.unknowncoder56.javaslc
An interface to implement the method for receiving the bot start event.

U

User - Class in io.github.unknowncoder56.javaslc
This class describes a user or bot.
User(String, ErrorListener) - Constructor for class io.github.unknowncoder56.javaslc.User
Constructor to build a user.
userId - Variable in class io.github.unknowncoder56.javaslc.User
The ID of the user.

V

valueOf(String) - Static method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
Returns an array containing the constants of this enum class, in the order they are declared.
A B C E G I J M N O P R S U V 
All Classes and Interfaces|All Packages