瀏覽代碼

added comments to aesthetics command.

tags/v1.8.0
Roxie Gibson 6 年之前
父節點
當前提交
1c8b7a5195
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      roxbot/cogs/fun.py

+ 3
- 3
roxbot/cogs/fun.py 查看文件

@@ -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…
取消
儲存