andersthemagi / Sovereign-of-Chaos

A small-scale bot made in Python, capable of handling several D&D related tasks on Discord. Built using Discord.py and hosted on a Raspberry Pi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaderboard needs to handle underscores

andersthemagi opened this issue · comments

Describe the bug

When displaying the leaderboard using !lb, italics mess up the formatting slightly.

Steps To Reproduce

  1. !lb in chat

Expected behavior

An underscore in a name on the leaderboard should not affect the formatting.

Screenshots

image

Additional context

May need to look into other formatting changes that might screw up the leaderboard.

Using several instances of backslashes like in markdown / discord to avoid the italicization didn't work.

What did work was changing from a md code block to a asciidoc code block. About the same formatting and ignores the underscores and other special characters.