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

Added reload_command command

parent 074862f2
Branches
Tags
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 reload_command(ctx, command):
client.unload_extension(f'commands.{extension}')
client.load_extension(f'commands.{extension}')
await ctx.send(f'Reloaded commands.{extension}.')
def setup(client):
client.add_command(reload_command)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment