pinger_bot.ext.commands.add#

Module for the add command.

Module Contents#

Functions#

get_fail_embed(→ hikari.embeds.Embed)

Get the embed for when the ping fails.

get_already_added_embed(→ hikari.embeds.Embed)

Get the embed for when the server already was added.

add(→ None)

Add a server to the database, only for owner.

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