Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to format information command reply #31

Open
connorhsm opened this issue Sep 24, 2023 · 1 comment
Open

Solution to format information command reply #31

connorhsm opened this issue Sep 24, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@connorhsm
Copy link
Member

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 connorhsm added the good first issue Good for newcomers label Sep 24, 2023
@connorhsm
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant