Update songchanger.py
This commit is contained in:
parent
b3be8f4daa
commit
95b02c7488
1 changed files with 3 additions and 2 deletions
|
@ -18,13 +18,14 @@ class songchange(commands.Cog):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def changesong(self, ctx):
|
async def changesong(self, ctx):
|
||||||
if LOCAL_VERSION_FILE < "0.11.8":
|
if LOCAL_VERSION_FILE > "0.11.8":
|
||||||
await ctx.send(f"Goober is too old! you must have version 0.11.8 you have {local_version}")
|
await ctx.send(f"Goober is too old! you must have version 0.11.8 you have {local_version}")
|
||||||
|
return
|
||||||
await ctx.send("Check the terminal! (this does not persist across restarts)")
|
await ctx.send("Check the terminal! (this does not persist across restarts)")
|
||||||
song = input("\nEnter a song:\n")
|
song = input("\nEnter a song:\n")
|
||||||
try:
|
try:
|
||||||
await self.bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name=f"{song}"))
|
await self.bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name=f"{song}"))
|
||||||
print(f"{GREEN}Changed song to {song}")
|
print(f"{GREEN}Changed song to {song}{RESET}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"{RED}An error occurred while changing songs..: {str(e)}{RESET}")
|
print(f"{RED}An error occurred while changing songs..: {str(e)}{RESET}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue