refactored client to botclient

This commit is contained in:
Specoolazius 2022-03-30 21:49:10 +02:00
parent 73d0b6d9e6
commit 793357a706

View File

@ -75,7 +75,7 @@ class Configs(object):
return token return token
class Client(discord.Bot, ABC): class BotClient(discord.Bot, ABC):
"""< discord.Bot > """< discord.Bot >
The bot class The bot class
@ -85,8 +85,8 @@ class Client(discord.Bot, ABC):
self.__config = Configs() self.__config = Configs()
self.logger = self.__setup_logger(self.__config.log_level) self.logger = self.__setup_logger(self.__config.log_level)
super(Client, self).__init__( super(BotClient, self).__init__(
# starting presence # default presence
activity=discord.Game('Beep Boop! Loading...'), activity=discord.Game('Beep Boop! Loading...'),
status=discord.Status.idle, status=discord.Status.idle,
) )
@ -258,4 +258,4 @@ class StartStop(discord.Cog):
if __name__ == '__main__': if __name__ == '__main__':
Client().run() BotClient().run()