2019-12-16 19:36:55 +01:00
|
|
|
from discord.ext import commands
|
|
|
|
|
|
|
|
|
|
|
|
class commandsPlus(commands.Command):
|
|
|
|
def __init__(self, func, **kwargs):
|
|
|
|
super().__init__(func, **kwargs)
|
2019-12-17 22:41:54 +01:00
|
|
|
self.category = kwargs.get("category", 'other')
|
2020-01-05 19:49:02 +01:00
|
|
|
self.help = kwargs.get("help", 'No Help Provided')
|
|
|
|
self.usage = kwargs.get("usage", 'No Usage Provided')
|
2019-12-16 19:36:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
def commandExtra(*args, **kwargs):
|
|
|
|
return commands.command(*args, **kwargs, cls=commandsPlus)
|
|
|
|
|
|
|
|
|
|
|
|
class GroupPlus(commands.Group):
|
|
|
|
def __init__(self, func, **kwargs):
|
|
|
|
super().__init__(func, **kwargs)
|
2019-12-17 22:41:54 +01:00
|
|
|
self.category = kwargs.get("category", 'other')
|
2020-01-05 19:49:02 +01:00
|
|
|
self.help = kwargs.get("help", 'No Help Provided')
|
|
|
|
self.usage = kwargs.get("usage", 'No Usage Provided')
|
2019-12-16 19:36:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
def groupExtra(*args, **kwargs):
|
|
|
|
return commands.group(*args, **kwargs, cls=GroupPlus)
|