Module cogs.ping_cog
A simple cog that pings the bot to check if it is online
Functions
async def setup(bot)
-
Function to setup the testing cog
Classes
class Testing (bot)
-
This class contains the commands to test the bot
Expand source code
class Testing(commands.Cog): """ This class contains the commands to test the bot """ def __init__(self, bot): self.bot = bot @commands.command(name="ping", help="Pings the bot to check if it is online") async def ping(self, ctx): """ Function to ping the bot """ await ctx.send("Pong!")
Ancestors
- discord.ext.commands.cog.Cog
Class variables
var ping