pinger_bot.ext.commands.alias#
Module for the alias command.
Module Contents#
Functions#
|
Get the embed for when the something fails. |
|
Get the embed when user not owner of the server. |
|
Get the embed when alias already exists. |
|
Ping the server and give information about it. |
|
Load the |
Attributes#
|
- plugin[source]#
lightbulb.Pluginobject.
- async get_fail_embed(ip: str) hikari.embeds.Embed[source]#
Get the embed for when the something 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_not_owner_embed(server: pinger_bot.mc_api.MCServer) hikari.embeds.Embed[source]#
Get the embed when user not owner of the server.
- Parameters:
server –
MCServerobject.- Returns:
The embed where user not owner of the server.
- async get_alias_exists_embed(server: pinger_bot.mc_api.MCServer, input_alias: str) hikari.embeds.Embed[source]#
Get the embed when alias already exists.
- Parameters:
server –
MCServerobject.input_alias – Alias inputted by user.
- Returns:
The embed where alias already exists.
- async alias_cmd(ctx: lightbulb.context.slash.SlashContext, ip: str, alias: str) None[source]#
Ping the server and give information about it.
- Parameters:
ctx – The context of the command.
ip – The IP address or alias of the server.
alias – New alias of the server.
- load(bot_instance: pinger_bot.bot.PingerBot) None[source]#
Load the
plugin.