Browse Source

command framework added

tags/v1.1.0
roxie 6 years ago
parent
commit
9f4085bdde
2 changed files with 34 additions and 1 deletions
  1. +34
    -0
      cogs/customcommands.py
  2. +0
    -1
      cogs/joinleave.py

+ 34
- 0
cogs/customcommands.py View File

@@ -0,0 +1,34 @@
from discord.ext.commands import bot
from discord.ext.commands import group
from config.server_config import ServerConfig


class CustomCommands():
def __init__(self, Bot):
self.bot = Bot
self.con = ServerConfig()
self.servers = self.con.servers

@group(pass_context=True, aliases=["cc"])
async def custom(self, ctx):
if ctx.invoked_subcommand is None:
return await self.bot.say('Missing Argument')

@custom.command(pass_context=True)
async def add(self, ctx, command, output, prefix_required = 0):
print(prefix_required)

@custom.command(pass_context=True)
async def edit(self, ctx, *, command):
pass

@custom.command(pass_context=True)
async def remove(self, ctx, *, command):
pass

@custom.command(pass_context=True)
async def list(self, ctx, *, command):
pass

def setup(Bot):
Bot.add_cog(CustomCommands(Bot))

+ 0
- 1
cogs/joinleave.py View File

@@ -1,4 +1,3 @@

import discord
from config.server_config import ServerConfig


Loading…
Cancel
Save