aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Henrik Böving <[email protected]>2018-05-30 19:36:21 +0200
committerGravatar Gareth Coles <[email protected]>2018-05-30 18:36:21 +0100
commit936e78348f2f2466dd366e573b3b1e704df943c7 (patch)
tree806af46aba5f5d232f1da0379475f86cb7af1b81
parent[Constants] Hint constants classes, and add a few constants (diff)
Escape unicode (#92)
* autocodeblocking * ast fix better type annotations * ci there you go * line too long ==> remove comment * deleting message + lowercase python * comments * remove docstrings * you may * not sure what you mean with move to a new line maybe this? * descriptive enough? * better explanation of text filtering * rewrite * fstring * pep8 * better comment * discord message length * ok shady * ok shady * "This is still async discord.py" * didnt see josephs comment * minor comment changes * blank and typo * typo.. * embed sending * adding waiting time + embed dont know if this is the correct way to store the field string * forgot await * but now i know * i heard him * pls * more descriptive variable name * comment * and better string formatting * approve me lemon * here we go aperture * there we go again * name error..... damn linter plugins * you get it aperture * ok lemon * ok aperture * constants instead of plain channel ID * forgot one * constants in bot.py * lemons way ftw * flake8 is weird man * aperture 1 * next aperture * dunno * imports * next lemon * unicode escape sequences so gdude can lint again
-rw-r--r--bot/cogs/bot.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index 80cd7d3b0..3f0c8678d 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -252,7 +252,12 @@ class Bot:
on_cooldown = (time.time() - self.channel_cooldowns.get(msg.channel.id, 0)) < 300
if not on_cooldown:
try:
- not_backticks = ["'''", '"""', "´´´", "‘‘‘", "’’’", "′′′", "“““", "”””", "″″″", "〃〃〃"]
+ not_backticks = [
+ "'''", '"""', "\u00b4\u00b4\u00b4", "\u2018\u2018\u2018", "\u2019\u2019\u2019",
+ "\u2032\u2032\u2032", "\u201c\u201c\u201c", "\u201d\u201d\u201d", "\u2033\u2033\u2033",
+ "\u3003\u3003\u3003"
+ ]
+
bad_ticks = msg.content[:3] in not_backticks
if bad_ticks:
ticks = msg.content[:3]