pinger_bot.ext.commands.alias#

Module for the alias command.

Module Contents#

Functions#

get_fail_embed(→ hikari.embeds.Embed)

Get the embed for when the something fails.

get_not_owner_embed(→ hikari.embeds.Embed)

Get the embed when user not owner of the server.

get_alias_exists_embed(→ hikari.embeds.Embed)

Get the embed when alias already exists.

alias_cmd(→ None)

Ping the server and give information about it.

load(→ None)

Load the plugin.

Attributes#

plugin[source]#

lightbulb.Plugin object.

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:

serverMCServer object.

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:
  • serverMCServer object.

  • 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.