Azoy / Sword

Discord library for Swift
https://azoy.github.io/Sword
MIT License
179 stars 52 forks source link

Update command system #15

Closed MrLotU closed 7 years ago

MrLotU commented 7 years ago

Update command system to accept a command both when it's spelled like this: !command but also if you were to throw in some random caps like this: !cOMMand also works when you .register a command, can put in both bot.register("coMMand") and bot.register("command")

Azoy commented 7 years ago

Few things here that I see

  1. Needs to compile
  2. Use 2 space tabs
  3. You're not guaranteed that someone registered their command using all lowercase
MrLotU commented 7 years ago
  1. I figured that out, working on that now
  2. /tableflip
  3. What do you mean?
MrLotU commented 7 years ago

Just seeing if it works now, I'll fix indention in a bit

MrLotU commented 7 years ago

Need to do more local testing of the handle() method, I'll reopen once that's fixed