elightcap / blackmail

0 stars 0 forks source link

Spaces in channel name #31

Closed elightcap closed 3 years ago

elightcap commented 3 years ago

Describe the bug If someone uses "!build" with spaces in the name of the channel, discord replaces the spaces with "-". The bot is looking for the channel name with spaces, which causes issues.

To Reproduce Steps to reproduce the behavior:

  1. With "Home Builder" role, type "!build this is a test"
  2. the channel will be created and a role assigned, but it will not be added to database, and home owner will not be rebuilt

Expected behavior Channel creation, role addition, database entry added, homebuilder role removed

Additional context Easy fix. will just have bot replace spaces with dashes.