fix 2 bugs
This commit is contained in:
parent
f9ad10b285
commit
8db1d66996
2 changed files with 33 additions and 34 deletions
|
@ -70,7 +70,7 @@ async def on_ready():
|
||||||
log.info(f'\nLogged in as: {bot.user.name} - '
|
log.info(f'\nLogged in as: {bot.user.name} - '
|
||||||
f'{bot.user.id}\ndpy version: {discord.__version__}\n')
|
f'{bot.user.id}\ndpy version: {discord.__version__}\n')
|
||||||
game_name = f"{config['base']['prefix']}help"
|
game_name = f"{config['base']['prefix']}help"
|
||||||
await bot.change_presence(game=discord.Game(name=game_name))
|
await bot.change_presence(activity=discord.Game(name=game_name))
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|
|
@ -18,8 +18,7 @@ class Common:
|
||||||
self.bot.aiogetbytes = self.aiogetbytes
|
self.bot.aiogetbytes = self.aiogetbytes
|
||||||
self.bot.get_relative_timestamp = self.get_relative_timestamp
|
self.bot.get_relative_timestamp = self.get_relative_timestamp
|
||||||
|
|
||||||
|
def get_relative_timestamp(self, time_from=None, time_to=None,
|
||||||
def get_relative_timestamp(self, time_from=None, time_to=None,
|
|
||||||
humanized=False, include_from=False,
|
humanized=False, include_from=False,
|
||||||
include_to=False):
|
include_to=False):
|
||||||
# Setting default value to utcnow() makes it show time from cog load
|
# Setting default value to utcnow() makes it show time from cog load
|
||||||
|
|
Loading…
Reference in a new issue