mirror of
https://github.com/Specoolazius/mcserver-discordbot.git
synced 2024-11-28 20:09:46 +01:00
refactored client to botclient
This commit is contained in:
parent
73d0b6d9e6
commit
793357a706
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user