escape response

fight-fixes
bobloy 7 years ago
parent bb6b9e9278
commit 4dc0e8f0c7

@ -6,6 +6,7 @@ from discord.ext import commands
from redbot.core import Config from redbot.core import Config
from redbot.core.bot import Red from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import escape
from .source import ChatBot from .source import ChatBot
from .source.trainers import ListTrainer from .source.trainers import ListTrainer
@ -122,7 +123,7 @@ class Chatter:
async with channel.typing(): async with channel.typing():
response = self.chatbot.get_response(text) response = self.chatbot.get_response(text)
if response: if response:
await channel.send(response) await channel.send(escape(response))
else: else:
await channel.send(":thinking:") await channel.send(":thinking:")

Loading…
Cancel
Save