Skip to content
Snippets Groups Projects
Commit fc33af83 authored by Reviath's avatar Reviath
Browse files

Update commands/load_command.py

parent 6ea0bae3
No related branches found
No related tags found
No related merge requests found
import discord
from discord.ext import commands
@commands.command(brief="Author command", description="Author command", hidden=True)
@commands.is_owner()
async def load_command(ctx, extension):
client.load_extension(f'commands.{extension}')
await ctx.send(f'Loaded commands.{extension}.')
def setup(client):
client.add_command(load_command)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment