I have the weirdest issue. My discord bot's status isn't working. I develop this thing on windows with a test-bot and that one is coming online just fine changing it's status exactly as I want it to. The 'actual' bot, running exactly the same code however, is not. it's running fine but its status isn't doing anything. There is a difference in that it's running on FreeBSD in Python 3.9 so that might be a cause but I'd expect some kind of error and there aren't any errors (or not that I can find) and the bots look exactly the same in the discord developer settings.. I'm at a loss.... This is part of the code responsible for that status. ```py import discord import logging client = discord.Client(intents=intents) @client.event async def on_ready(): logging.info(f'We have logged in as {client.user},') for guild in client.guilds: botconfig.guild_id = guild.id botconfig.guild_name = guild.name logging.info(f"Guild Name: {botconfig.guild_name},") logging.info(f"Guild ID: {botconfig.guild_id},") # TODO Should make this a list to support multiple channels botconfig.channel_id = discord.utils.get(guild.channels, name=botconfig.channel_name).id logging.info(f"Channel name: {botconfig.channel_name}, Channel ID: {botconfig.channel_id},") await client.change_presence(status=discord.Status.online, activity=discord.CustomActivity("You're finally awake..")) status_update.start() @tasks.loop(seconds=900) async def status_update() -> None: statuses = [ "Programming..", "Hacking the matrix", "Sleeping ...", "Sorting my ones and zeros", ] await client.change_presence(status=discord.Status.online, activity=discord.CustomActivity(random.choice(statuses))) ``` I don't know where I have to start looking for the cause. It's even more confusing that sometimes it DOES work just once.. and just for a very very short while.
still need help?