jkcgs / alexis-bot

Another Discord bot, initially created for /r/chile's guild (https://discord.gg/chile)
https://alexisbot.mak.wtf/
MIT License
9 stars 6 forks source link

simplejson.scanner.JSONDecodeError #41

Closed jkcgs closed 7 years ago

jkcgs commented 7 years ago
Ignoring exception in on_message
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/discord/client.py", line 307, in_run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "alexis.py", line 182, in on_message
    await i.handle(message, i.parse(message))
  File "/home/jk/alexis-bot/modules/commands/cleverbot.py", line 45, in handle
    reply = self.cbot.say(msg)
  File "/usr/local/lib/python3.5/dist-packages/cleverwrap/cleverwrap.py", line 60, in say
    reply = self._send(params)
  File "/usr/local/lib/python3.5/dist-packages/cleverwrap/cleverwrap.py", line 77, in _send
    return r.json()
  File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 374, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 404, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Invalid control character '\x07' at: line 1column 1749 (char 1748)
jkcgs commented 7 years ago

shrugs