gurkult / gurkbot

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

Fix https://discord.com/channels/789192517375623228/793570459945926717/794026240767557664 #44

Closed Shivansh-007 closed 3 years ago

Shivansh-007 commented 3 years ago

Problem: When flags such as --wraped is added, the backticks of the code block aren't removed, Hence the code sent to be compiled has backticks in it, causing the code to error out.

Fix: Before appending the code to the list code, It will run .strip() method, to remove the backticks.

Example of Error: https://discord.com/channels/789192517375623228/793570459945926717/794026240767557664

Example of fix https://discord.com/channels/793864455527202847/793864455917797408/794026359931273216