Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.81k stars 2.31k forks source link

CustomCommand on_message listener error #2697

Closed DevilXD closed 5 years ago

DevilXD commented 5 years ago

Other bugs

The CustomCommands cog throws an error into the console if a message processed in the on_message listener happens to start with a prefix and a space following right after.

How can we reproduce this issue?

  1. Have CC loaded
  2. [p]cc add simple bugtest This command is for bug testing only!
  3. [p] test (notice the space after the prefix)

Haven't tested if this is still the case without any CC added. Traceback: https://i.imgur.com/SQdk8ot.png

Python 3.7.1, Red 3.1.1, D.py 1.0.1

mikeshardmind commented 5 years ago

fixed in #2739