import datetime
import os
import json
import aiohttp
from discord.ext import commands

config = json.load(open('config.json'))

class Bot(commands.Bot):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.session = aiohttp.ClientSession(loop=self.loop)
        self.config = config
        self.startup_time = datetime.datetime.utcnow()

    async def on_ready(self):
        print(f'You are currently logged in as {bot.user}.')

    def load_extensions(self):
        for file in os.listdir('cogs'):
            if file.endswith('.py'):
                ext = file[:-3]
                try:
                    self.load_extension(f'cogs.{ext}')
                except Exception as e:
                    print(f'Failed to load extension {ext}: {e}')


if __name__ == '__main__':
    bot = Bot(command_prefix='-', config=config)
    bot.load_extensions()
    bot.run(bot.config['discord'])

import datetime
import os
import json
import aiohttp
import discord
from discord.ext import commands

config = json.load(open('config.json'))

class Bot(commands.Bot):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.session = aiohttp.ClientSession(loop=self.loop)
        self.config = config
        self.startup_time = datetime.datetime.utcnow()

    async def on_ready(self):
        print(f'You are currently logged in as {bot.user}.')

        game = discord.Game('-help')
        await self.change_presence(activity=game)

    def load_extensions(self):
        for file in os.listdir('cogs'):
            if file.endswith('.py'):
                ext = file[:-3]
                try:
                    self.load_extension(f'cogs.{ext}')
                except Exception as e:
                    print(f'Failed to load extension {ext}: {e}')


if __name__ == '__main__':
    bot = Bot(command_prefix='-', config=config)
    bot.load_extensions()
    bot.run(bot.config['discord'])

Change game status to -help
Change game status to -help
