#command not working

1 messages · Page 1 of 1 (latest)

south vigil
#

It would be helpful if you shared any errors you got - if any.

#

All good! We’re just here to help :)

#

ctx.author

tribal canyon
#

sets are unindexed

#

like you can't access any of their items

#

like set[0]

#

you can only check if an item exists in that set

#

your indentation

#

this is in the if block

south vigil
#

You should probably be returning when you reply with an error

#

So that it doesn’t kick regardless.

tribal canyon
#

also, just a tip, but don't do bare excepts

#

bad example

try:
  ...
except:
  ...

south vigil
#
except exception as e:
   print(e)

this too

tribal canyon
#

good example

try:
  ...
except ExceptionName:
  ...

#

in the docs you can see different exceptions that can happen

#

the help command is already built in

#

and it gets created automatically from the commands already registered

#

you can make a custom help command with that

south vigil
#

You should probably make a new thread or ask in #998272089343668364 if you’re wanting help for a different thing than why this thread was created.

#

?tag closing

spice ferryBOT
#

Done with your help thread?

Please close your own help thread using /close with @little obsidian.