gurkult / gurkbot

Our community bot, used for running the server.
MIT License
18 stars 16 forks source link

Fix indenation of code snippet sent on `!gh source` command #116

Closed Shivansh-007 closed 3 years ago

Shivansh-007 commented 3 years ago

Description

Use textwrap.dedent to remove the extra indentation present on the code snippet posted on executing !gh src <command> command.

Reasoning

Currently it doesn't remove the indentation and uses the indentation present on the file, as a result looks messy, makes it unreadable and breaks the code lines.