async def start(self, ctx: SlashContext): """Changes the activity of the bot.""" config = get_config() embed = Embed(title=f'Activity changed to "{config["starting"]}"', description=Embed.Empty, colour=Color.dark_blue()) await ctx.send(embed=embed, delete_after=5) await self.client.change_presence(activity=Activity( type=ActivityType.playing, name=config['starting']))
def __init__(self, client): self.client = client self.config = get_config() with open('assets/amogus/wins/wins.json', 'r') as json_win_datas: self.win_datas = json.load(json_win_datas)
def __init__(self, client): self.client = client self.config = get_config()
def __init__(self, client): self.client = client self.config = get_config() self.status = 0 self.is_live.start() print('========== loop is starting ==========')