Browse Source

added comments to aesthetics command.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
1c8b7a5195
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      roxbot/cogs/fun.py

+ 3
- 3
roxbot/cogs/fun.py View File

@@ -284,9 +284,9 @@ class Fun:
@bot.command()
async def aesthetics(self, ctx, *, convert):
"""Converts text to be more a e s t h e t i c s"""
WIDE_MAP = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F))
WIDE_MAP[0x20] = 0x3000
converted = str(convert).translate(WIDE_MAP)
wide_map = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F)) # Create dict with fixed width equivalents for chars
wide_map[0x20] = 0x3000 # replace space with 'IDEOGRAPHIC SPACE'
converted = str(convert).translate(wide_map)
output = await ctx.send(converted)

logging = roxbot.guild_settings.get(ctx.guild).logging

Loading…
Cancel
Save