twohoursonelife / junior

Non-C Junior: A Discord bot automating the lifes work of MVP community member Non Creative Guy.
MIT License
1 stars 1 forks source link

Solution to format information command reply #31

Open connorhsm opened 1 year ago

connorhsm commented 1 year ago

Most commands in this bot reply with an info dump to educate players. When creating each one, I am given grammatically correct formatted text, which needs to be manually reformatted into a string for the bot to recreate the formatting in Discord.

It would be nice for someone to find an existing tool to do this or create a function in this bot that can easily be used to generate it, ideally with unit tests.

For example:

"The quick brown fox jumps over the lazy dog's tail.

The dog didn't like that."

Must become:

'The quick brown fox jumps over the lazy dog\'s tail.\n\nThe dog didn\'t like that.'
connorhsm commented 1 year ago

@TanyaPegasus May be of interest? Not of high priority.