Class SimpleBot
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.SimpleBot
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandKernel
commandKernel()
Gets the command kernel of this bot.BotConfig
config()
Gets the config of the bot.static SimpleBot
create(BotConfig config)
Creates a newSimpleBot
using the given config.Database
database()
Gets the database of the bot.reactor.core.publisher.Mono<String>
emoji(String emojiName)
Gets the String representation of an emoji installed on one of the emoji servers.discord4j.core.GatewayDiscordClient
gateway()
Gets the gateway client of the bot.reactor.core.publisher.Mono<Void>
log(String message)
Sends a message into the debug log channel.reactor.core.publisher.Mono<discord4j.core.object.entity.User>
owner()
Gets the bot owner.Set<Plugin>
plugins()
Gets a Set containing all successfully loaded plugins.discord4j.core.DiscordClient
rest()
Gets the REST client of the bot.void
start()
Starts the bot.
-
-
-
Method Detail
-
database
public Database database()
Description copied from interface:Bot
Gets the database of the bot.
-
commandKernel
public CommandKernel commandKernel()
Description copied from interface:Bot
Gets the command kernel of this bot.- Specified by:
commandKernel
in interfaceBot
- Returns:
- the command kernel
-
rest
public discord4j.core.DiscordClient rest()
Description copied from interface:Bot
Gets the REST client of the bot.
-
gateway
public discord4j.core.GatewayDiscordClient gateway()
Description copied from interface:Bot
Gets the gateway client of the bot.
-
plugins
public Set<Plugin> plugins()
Description copied from interface:Bot
Gets a Set containing all successfully loaded plugins.
-
owner
public reactor.core.publisher.Mono<discord4j.core.object.entity.User> owner()
Description copied from interface:Bot
Gets the bot owner.
-
log
public reactor.core.publisher.Mono<Void> log(String message)
Description copied from interface:Bot
Sends a message into the debug log channel.
-
emoji
public reactor.core.publisher.Mono<String> emoji(String emojiName)
Description copied from interface:Bot
Gets the String representation of an emoji installed on one of the emoji servers. If the emoji is not found, the returned value is the given name wrapped in colons.
-
start
public void start()
Description copied from interface:Bot
Starts the bot. This method blocks until the bot disconnects.
-
-