Пример #1
0
    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']))
Пример #2
0
 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)
Пример #3
0
 def __init__(self, client):
     self.client = client
     self.config = get_config()
Пример #4
0
 def __init__(self, client):
     self.client = client
     self.config = get_config()
     self.status = 0
     self.is_live.start()
     print('========== loop is starting ==========')