Commands Setup - redmoogle/Rednako GitHub Wiki

Setting up commands

  • Add Code snippets as needed

Command Snippet

@commands.command(
  name='COMMAND',
  brief=''
 )
async def COMMAND(self, ctx):
  pass

Embeds

import helpers # if you have pylint ignore E1101  ((no member error))
...
info = [
    [field, value],...
]
embed=helpers.embed(title='TITLE', fields=info)
await ctx.send(embed=embed)

Special Checks

def check(ctx):
  if(check)
    return True
  return False

...
@commands.check(check)