pinger_bot.ext.commands.ping#
Module for the ping command.
Module Contents#
Functions#
|
Get the embed for when the ping fails. |
|
Clear the |
|
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 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 clear_motd(motd: str) str[source]#
Clear the
motdfrom the non-readable characters.This removes
&and§from themotd(plus next character).
- async ping(ctx: lightbulb.context.slash.SlashContext, ip: str) None[source]#
Ping the server and give information about it.
- 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.