#Bot going offline after some time

1 messages · Page 1 of 1 (latest)

versed flower
#

Hello, my bot is going offline after 1 hour and idk why...
I got this error:

Traceback (most recent call last):
  File "main.py", line 447, in <module>
    bot.run(os.getenv("TOKEN"))
  File "/home/container/.local/lib/python3.8/site-packages/discord/client.py", line 715, in run
    return future.result()
  File "/home/container/.local/lib/python3.8/site-packages/discord/client.py", line 694, in runner
    await self.start(*args, **kwargs)
  File "/home/container/.local/lib/python3.8/site-packages/discord/client.py", line 658, in start
    await self.connect(reconnect=reconnect)
  File "/home/container/.local/lib/python3.8/site-packages/discord/client.py", line 553, in connect
    await self.ws.poll_event()
  File "/home/container/.local/lib/python3.8/site-packages/discord/gateway.py", line 589, in poll_event
    await self.received_message(msg.data)
  File "/home/container/.local/lib/python3.8/site-packages/discord/gateway.py", line 539, in received_message
    func(data)
  File "/home/container/.local/lib/python3.8/site-packages/discord/state.py", line 635, in parse_auto_moderation_action_execution
    event = AutoModActionExecutionEvent(self, data)
  File "/home/container/.local/lib/python3.8/site-packages/discord/raw_models.py", line 462, in __init__
    self.content: str = data["content"]
KeyError: 'content'

i enabled all the intents in the discord developer portal

idle flame
#

whats your server host?

versed flower
idle flame
#

yes

fickle glade
#

i think you have the same issue in #1001697308255203443

idle flame
#

likely

fickle glade
#

try to look there, this issue is already resolved in #1001697308255203443

versed flower
#

ok

charred salmon
#

Replit?

arctic creek
arctic creek
versed flower
#

Ok