yeah no lastfm gets the status change so fix later i guess

This commit is contained in:
WhatDidYouExpect 2025-07-17 15:22:39 +02:00
parent c565f962c5
commit 7c6be59dc9
4 changed files with 14 additions and 4 deletions

10
bot.py
View file

@ -113,6 +113,7 @@ async def on_ready() -> None:
global launched global launched
global slash_commands_enabled global slash_commands_enabled
global NAME global NAME
global status
folder_name: str = "cogs" folder_name: str = "cogs"
if launched: if launched:
@ -137,7 +138,14 @@ async def on_ready() -> None:
if not song: if not song:
return return
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name=f"{song}"))
status = {
"idle": discord.Status.idle,
"dnd": discord.Status.dnd,
"invisible": discord.Status.invisible,
"online": discord.Status.online
}.get(status.lower(), discord.Status.online)
await bot.change_presence(status=status, activity=discord.Activity(type=discord.ActivityType.listening, name=f"{song}"))
launched = True launched = True
@bot.event @bot.event

View file

@ -11,6 +11,7 @@ AUTOUPDATE="True"
SONG="Basket Case - Green Day" SONG="Basket Case - Green Day"
CHECKSDISABLED="Frue" CHECKSDISABLED="Frue"
REACT="True" REACT="True"
STATUS="idle"
POSITIVEGIFS="https://media.discordapp.net/attachments/821047460151427135/1181371808566493184/jjpQGeno.gif, https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272,https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988" POSITIVEGIFS="https://media.discordapp.net/attachments/821047460151427135/1181371808566493184/jjpQGeno.gif, https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272,https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988"
SPLASHTEXT=" SPLASHTEXT="

View file

@ -35,6 +35,7 @@ LOCALE = os.getenv("LOCALE", "en")
gooberTOKEN = os.getenv("GOOBERTOKEN") gooberTOKEN = os.getenv("GOOBERTOKEN")
splashtext = os.getenv("SPLASHTEXT") splashtext = os.getenv("SPLASHTEXT")
ownerid = int(os.getenv("OWNERID", "0")) ownerid = int(os.getenv("OWNERID", "0"))
status = os.getenv("STATUS")
showmemenabled = os.getenv("SHOWMEMENABLED") showmemenabled = os.getenv("SHOWMEMENABLED")
BLACKLISTED_USERS = os.getenv("BLACKLISTEDUSERS", "").split(",") BLACKLISTED_USERS = os.getenv("BLACKLISTEDUSERS", "").split(",")
USERTRAIN_ENABLED = os.getenv("USERTRAINENABLED", "true").lower() == "true" USERTRAIN_ENABLED = os.getenv("USERTRAINENABLED", "true").lower() == "true"
@ -44,7 +45,7 @@ MEMORY_LOADED_FILE = "MEMORY_LOADED" # is this still even used?? okay just check
ALIVEPING = os.getenv("ALIVEPING") ALIVEPING = os.getenv("ALIVEPING")
AUTOUPDATE = os.getenv("AUTOUPDATE") AUTOUPDATE = os.getenv("AUTOUPDATE")
# IGNOREWARNING = False # is this either??? i don't think so? # IGNOREWARNING = False # is this either??? i don't think so?
song = os.getenv("song") song = os.getenv("SONG")
arch = platform.machine() arch = platform.machine()
slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code
launched = False launched = False