aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2023-02-09 13:16:49 -0500
committerGravatar Ionite <[email protected]>2023-02-09 13:16:49 -0500
commita8c333048a9d9c73d0eecb983b64dbbc377664eb (patch)
tree84b9c1061bea9c629b1d669fb32be3b98d1af03b
parentHide no output on any file upload (diff)
Add and update eval to use new `failed_file` emoji
-rw-r--r--bot/constants.py1
-rw-r--r--bot/exts/utils/snekbox/_cog.py2
-rw-r--r--bot/exts/utils/snekbox/_eval.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 9851aea97..f17f2dc0c 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -289,6 +289,7 @@ class Emojis(metaclass=YAMLGetter):
defcon_update: str # noqa: E704
failmail: str
+ failed_file: str
incident_actioned: str
incident_investigating: str
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py
index c0e8e432e..cdb709a5d 100644
--- a/bot/exts/utils/snekbox/_cog.py
+++ b/bot/exts/utils/snekbox/_cog.py
@@ -369,7 +369,7 @@ class Snekbox(Cog):
blocked_str = ", ".join(blocked_sorted)
blocked_msg = f"Files with disallowed extensions can't be uploaded: **{blocked_str}**"
- msg += f"\n{Emojis.failmail} {blocked_msg}"
+ msg += f"\n{Emojis.failed_file} {blocked_msg}"
filter_cog: Filtering | None = self.bot.get_cog("Filtering")
if filter_cog and (await filter_cog.filter_snekbox_output(msg, ctx.message)):
diff --git a/bot/exts/utils/snekbox/_eval.py b/bot/exts/utils/snekbox/_eval.py
index 93262959a..5c2fc8757 100644
--- a/bot/exts/utils/snekbox/_eval.py
+++ b/bot/exts/utils/snekbox/_eval.py
@@ -94,7 +94,7 @@ class EvalResult:
n_failed = len(self.failed_files)
s_upload = "uploads" if n_failed > 1 else "upload"
- msg = f"{Emojis.failmail} {n_failed} file {s_upload} {failed_files} failed"
+ msg = f"{Emojis.failed_file} {n_failed} file {s_upload} {failed_files} failed"
# Exceeded file count limit
if (n_failed + len(self.files)) > FILE_COUNT_LIMIT: