Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- ----------
- MagicLeague3 > core_utils.py
- CLASSIFIED: MagicLeague3 is proprietary code and cannot be distributed or modified in any way.
- APPENDED: MAGICLEAGUE3 SOURCE CODE HAS BEEN DECLASSIFIED AND IS AVAILABLE FOR PUBLIC USE!
- AUTHOR: Feven Kitsune <REMOVED>
- ----------
- """
- # Discord.py imports:
- import discord # Discord.py
- from discord.ext import commands # Discord.ext commands
- class core_utils():
- """
- ----------
- Constructor
- ----------
- """
- def __init__(self, client):
- self.client = client
- """
- ----------
- Commands
- ----------
- """
- @commands.command(name="ping", brief='Ping the bot', description='A simple ping command. Checks if the bot is running!', usage='<string>')
- async def ping (self, ctx, *args):
- embed = discord.Embed(color=0xEEEEEE)
- embed.set_footer(text="Invoked by: " + ctx.author.name)
- if not args:
- embed.add_field(name="Command: ping", value=":wave:", inline=False)
- else:
- embed.add_field(name="Command: ping", value=":wave: " + str(' '.join(args)), inline=False)
- await ctx.send(embed=embed)
- def setup(client):
- client.add_cog(core_utils(client))
Add Comment
Please, Sign In to add comment