GoldyBot.utility.presence
1import datetime 2import GoldyBot 3 4async def change(game_name:str, status:GoldyBot.nextcord.Status=None): 5 """Commands Goldy Bot to change presence.""" 6 client:GoldyBot.nextcord.Client = GoldyBot.cache.main_cache_dict["client"] 7 8 game = GoldyBot.nextcord.Game(game_name) 9 10 if status == None: 11 actual_status = client.status 12 else: 13 actual_status = status 14 15 await client.change_presence(status=actual_status, activity=game)
async def
change(game_name: str, status: nextcord.enums.Status = None):
5async def change(game_name:str, status:GoldyBot.nextcord.Status=None): 6 """Commands Goldy Bot to change presence.""" 7 client:GoldyBot.nextcord.Client = GoldyBot.cache.main_cache_dict["client"] 8 9 game = GoldyBot.nextcord.Game(game_name) 10 11 if status == None: 12 actual_status = client.status 13 else: 14 actual_status = status 15 16 await client.change_presence(status=actual_status, activity=game)
Commands Goldy Bot to change presence.