First official build of bot!
Co-authored-by: iakrules <64628083+iakrules@noreply.github.com>
This commit is contained in:
parent
953c89ead0
commit
2b8e2345f9
32 changed files with 1164 additions and 383 deletions
|
|
@ -1,16 +1,16 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class PingCog(commands.Cog):
|
||||
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
# Commands
|
||||
@commands.command(aliases=['latency'])
|
||||
async def ping(self, ctx):
|
||||
"""Returns the bot client latency"""
|
||||
await ctx.send(f'Pong! {round(self.client.latency * 1000)}ms')
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(PingCog(client))
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class PingCog(commands.Cog):
|
||||
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
# Commands
|
||||
@commands.command(aliases=['latency'])
|
||||
async def ping(self, ctx):
|
||||
"""Returns the bot bot latency"""
|
||||
await ctx.send(f'Pong! {round(self.bot.latency * 1000)}ms')
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(PingCog(bot))
|
||||
Loading…
Add table
Add a link
Reference in a new issue