aboutsummaryrefslogtreecommitdiff
path: root/question_of_the_day
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-03-11 05:44:12 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-03-11 05:44:12 +0000
commitafb14f53f4dc43163fe5d8528d94eadaf54fb34d (patch)
tree4e630d03ad07323aa492062bf1f7c6668eceb70d /question_of_the_day
parent8cdeb0a316628f2e581e66e0c72442ac23c56a74 (diff)
downloadaps-cogs-afb14f53f4dc43163fe5d8528d94eadaf54fb34d.tar
aps-cogs-afb14f53f4dc43163fe5d8528d94eadaf54fb34d.tar.gz
aps-cogs-afb14f53f4dc43163fe5d8528d94eadaf54fb34d.zip
Add skeleton of starboard cog; improve menu handling
We were previously not escaping mentions right in `qotd list` and `qotd suggest`. I think everyone and here could have maybe got through? Not sure about the defaults there. Also improved the handling in Markov where previously we'd been 1. allowing mentions but 2. editing the message from a dummy one so they didn't ping, which I think was out of some idea of preserving the exact text of an exclusion but it seems inelegant.
Diffstat (limited to 'question_of_the_day')
-rw-r--r--question_of_the_day/question_of_the_day.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/question_of_the_day/question_of_the_day.py b/question_of_the_day/question_of_the_day.py
index a307552..f6d7086 100644
--- a/question_of_the_day/question_of_the_day.py
+++ b/question_of_the_day/question_of_the_day.py
@@ -412,9 +412,8 @@ class QuestionOfTheDay(commands.Cog):
async def paginate_questions(self, ctx, questions: list):
return [
- x
- for x in redbot.core.utils.chat_formatting.pagify(
- redbot.core.utils.common_filters.filter_various_mentions(
+ *redbot.core.utils.chat_formatting.pagify(
+ discord.utils.escape_mentions(
"\n".join(
[
f"{i + 1}. {redbot.core.utils.chat_formatting.bold(question['question'])} by "