aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-01-30 22:54:19 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-01-30 22:54:19 +0100
commite882093b9e70c97b07e98a5d920cd136a82d298c (patch)
treed78abd99e7b1d2090bbb79160bc9cdf4d0b9a56b
parent57483e56b5117a49f6a7e83236f895fd478652a9 (diff)
downloaddiscord-e882093b9e70c97b07e98a5d920cd136a82d298c.zip
discord-e882093b9e70c97b07e98a5d920cd136a82d298c.tar.bz2
Using clean_content instead of content for mgs.
-rw-r--r--jh-discord.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jh-discord.py b/jh-discord.py
index a193568..fc85733 100644
--- a/jh-discord.py
+++ b/jh-discord.py
@@ -81,7 +81,7 @@ async def on_message(message):
server.sendall(
b"?RLR "
- + bytes(message.content.replace('\n', ' '), "utf8")
+ + bytes(message.clean_content.replace('\n', ' '), "utf8")
+ b"\n"
)
@@ -95,7 +95,7 @@ async def on_message(message):
+ " <"
+ str(message.author.name)
+ "> "
- + str(message.content)
+ + str(message.clean_content)
)
if (len(result) > 0):