so i created a bot that generate stuff but i ran into a problem: how can i make the bot run in multiple channels at the same time?
Error code:
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 20, in on_message
amount = int (message.content)
ValueError: invalid literal for int() with base 10: '!Start'
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
I have no experience with discord bots, and not much with Python, but that said, even if I had, without seeing your code it’s a really difficult thing to do, like playing darts in the dark