diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-01-03 13:39:21 +0000 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-01-03 13:39:21 +0000 |
commit | d224135b021e225b776fa5ef263ce6da2805d254 (patch) | |
tree | aede787e294194c3a8e8824852c91672c281b760 /cogs | |
parent | 9c1c4089d13c088ff2c2a59b10647b2efc1d3fba (diff) | |
download | steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar.gz steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar.bz2 steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar.lz steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar.xz steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.tar.zst steve-bot-d224135b021e225b776fa5ef263ce6da2805d254.zip |
Remove BC linebreaks
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/utils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cogs/utils.py b/cogs/utils.py index 266123f..3acc8fc 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -11,6 +11,7 @@ from random import choice, randint import discord from discord.ext import commands, tasks + # from PIL.Image import core as Image # import image as Image # from PIL import Image, ImageFilter @@ -67,14 +68,14 @@ async def reportStuff(self, ctx, message): # img = img.quantize(colors=256, method=3, kmeans=0, palette=pallette) # img = img.convert("RGBA") # datas = img.getdata() -# +# # newData = [] # for item in datas: # if item[0] == 255 and item[1] == 255 and item[2] == 255: # newData.append((255, 255, 255, 0)) # else: # newData.append(item) -# +# # img.putdata(newData) # """ # img = img.filter(ImageFilter.SHARPEN) @@ -441,7 +442,7 @@ class Utils(commands.Cog): async def math(self, ctx, eqn): try: result = subprocess.check_output(f"echo '{eqn}' | bc", shell=True) - await ctx.send(result.decode("utf-8").strip()) + await ctx.send(result.decode("utf-8").replace("\\\n", "").strip()) except subprocess.CalledProcessError as err: print(err) await ctx.send("Something went wrong") |