Package com.dianxin.tori.api.bot
Interface IBotMeta
public interface IBotMeta
Represents the metadata of a Discord bot running on the Tori Server.
The data provided by this interface is typically parsed directly from
the bot's bot.yml configuration file located in its resources.
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringGets the name of the primary author or developer of the bot.Gets a list of additional contributors who helped develop the bot.@UnknownNullability StringGets a brief description of what the bot does.@NotNull StringbotName()Gets the name of the bot.@NotNull StringGets the Discord User ID of the bot's primary owner.@NotNull StringGets the current version of the bot.@Nullable StringGets the official website or promotional page for the bot.@NotNull StringGets the fully qualified class path to the bot's main class (the class that extendsJavaDiscordBot).
-
Method Details
-
botName
Gets the name of the bot.- Returns:
- The bot's name.
-
botDescription
@UnknownNullability String botDescription()Gets a brief description of what the bot does.- Returns:
- The description of the bot, or null/empty if not specified.
-
botVersion
Gets the current version of the bot.- Returns:
- The version string (e.g., "1.0.0").
-
botAuthor
Gets the name of the primary author or developer of the bot.- Returns:
- The author's name.
-
botContributors
Gets a list of additional contributors who helped develop the bot.- Returns:
- A list of contributor names, or an empty list if there are none.
-
mainClassPath
Gets the fully qualified class path to the bot's main class (the class that extendsJavaDiscordBot).- Returns:
- The main class path (e.g., "com.example.bot.MainBotClass").
-
botWebsite
Gets the official website or promotional page for the bot.- Returns:
- The URL of the bot's website, or
nullif not provided.
-
botOwnerId
Gets the Discord User ID of the bot's primary owner.This is typically used by the framework to verify owner-exclusive permissions, such as restricting access to commands annotated with
@OwnerOnly.- Returns:
- The snowflake ID of the bot owner.
-