aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2021-01-03 15:35:41 +0000
committerMango0x45 <thomasvoss@live.com>2021-01-03 15:35:41 +0000
commite0abd677283eef8289fbd8b0fe599f869b7e2c1d (patch)
tree5ada7d2db949371a3c5f172671bbffa9d04e18ac /cogs/utils.py
parent010fd353d4c57bad9c6f47cac881d725a006423e (diff)
downloadsteve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar.gz
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar.bz2
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar.lz
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar.xz
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.tar.zst
steve-bot-e0abd677283eef8289fbd8b0fe599f869b7e2c1d.zip
I'm bad with folders
Diffstat (limited to '')
-rwxr-xr-xcogs/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index 9f7ba66..b3389d3 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -5,6 +5,7 @@ import json
import subprocess
from collections import namedtuple
from datetime import timedelta
+
# forgot to import this and ended up looking mentally unstable
# troll literally pointed out atleast 4 things I did wrong in 3 lines of code
from random import choice, randint
@@ -448,7 +449,7 @@ class Utils(commands.Cog):
eqn = eqn.replace("|", "abs(", pipes // 2).replace("|", ")", pipes // 2)
result = subprocess.check_output(
- f"echo '{eqn}' | bc -f */{bc_funcs}", shell=True
+ f"echo '{eqn}' | bc -f {bc_funcs}/*", shell=True
)
await ctx.send(result.decode("utf-8").replace("\\\n", "").strip())
except subprocess.CalledProcessError as err: