pinger_bot.ext.commands.add#
Module for the add command.
Module Contents#
Functions#
|
Get the embed for when the ping fails. |
|
Get the embed for when the server already was added. |
|
Add a server to the database, only for owner. |
|
Load the |
Attributes#
|
- plugin[source]#
lightbulb.Pluginobject.
- async get_fail_embed(ip: str) hikari.embeds.Embed[source]#
Get the embed for when the ping fails.
See source code for more information.
- Parameters:
ip – The IP address of the server to reference in text.
- Returns:
The embed where ping failed.
- async get_already_added_embed(ip: str) hikari.embeds.Embed[source]#
Get the embed for when the server already was added.
See source code for more information.
- Parameters:
ip – The IP address of the server to reference in text.
- Returns:
The embed where server was already added.
- async add(ctx: lightbulb.context.slash.SlashContext, ip: str) None[source]#
Add a server to the database, only for owner.
- Parameters:
ctx – The context of the command.
ip – The IP address of the server.
- load(bot_instance: pinger_bot.bot.PingerBot) None[source]#
Load the
plugin.