Can yall help me with this?

idk what to do i followed a video on making a bot and it was working but now theres an error and idk how or where it coming from

File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 343, in _run_event
await coro(*args, **kwargs)
File “main.py”, line 68, in on_message
options = options + db[“encouragements”]
TypeError: can only concatenate list (not “ObservedList”) to list
Ignoring exception in on_message
Traceback (most recent call last):
File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py”, line 343, in _run_event
await coro(*args, **kwargs)
File “main.py”, line 68, in on_message
options = options + db[“encouragements”]
TypeError: can only concatenate list (not “ObservedList”) to list

It would be very helpful if you shared your code.

TypeError: can only concatenate list (not “ObservedList”) to list

Well sounds like you are trying to combine two different data-structures for which such a combination is not defined.

You need to read error-messages if you want to program something.
And this one is pretty clear on what the problem is.

A post was split to a new topic: Help Python bot

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.