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 CommandKernelcommandKernel()Gets the command kernel of this bot.BotConfigconfig()Gets the config of the bot.static SimpleBotcreate(BotConfig config)Creates a newSimpleBotusing the given config.Databasedatabase()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.GatewayDiscordClientgateway()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.DiscordClientrest()Gets the REST client of the bot.voidstart()Starts the bot.
-
-
-
Method Detail
-
database
public Database database()
Description copied from interface:BotGets the database of the bot.
-
commandKernel
public CommandKernel commandKernel()
Description copied from interface:BotGets the command kernel of this bot.- Specified by:
commandKernelin interfaceBot- Returns:
- the command kernel
-
rest
public discord4j.core.DiscordClient rest()
Description copied from interface:BotGets the REST client of the bot.
-
gateway
public discord4j.core.GatewayDiscordClient gateway()
Description copied from interface:BotGets the gateway client of the bot.
-
plugins
public Set<Plugin> plugins()
Description copied from interface:BotGets a Set containing all successfully loaded plugins.
-
owner
public reactor.core.publisher.Mono<discord4j.core.object.entity.User> owner()
Description copied from interface:BotGets the bot owner.
-
log
public reactor.core.publisher.Mono<Void> log(String message)
Description copied from interface:BotSends a message into the debug log channel.
-
emoji
public reactor.core.publisher.Mono<String> emoji(String emojiName)
Description copied from interface:BotGets 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:BotStarts the bot. This method blocks until the bot disconnects.
-
-