Compare commits

..

No commits in common. "7935ea451107d4d05e0747faac14ca3d2cae2842" and "9b6cf3bd059b15fba01bd654a84fa747bc7c36ee" have entirely different histories.

2 changed files with 10 additions and 10 deletions

View File

@ -28,11 +28,11 @@ from dpy_logger import DPYLogger
bot.log = DPYLogger( bot.log = DPYLogger(
bot, guild_id, channel_id, bot, guild_id, channel_id,
colors=cfg.log_colors, # optional; merged over sensible defaults colors=log_colors, # optional; merged over sensible defaults
pings=cfg.authorized_devs, # mentioned on critical() pings=authorized_devs, # mentioned on critical()
timezone=cfg.timezone, timezone=tz,
footer=cfg.bot_footer, footer=bot_footer,
avatar=cfg.bot_avatar, avatar=bot_avatar,
) )
await bot.log.initialize() # resolves ids -> objects, call once await bot.log.initialize() # resolves ids -> objects, call once

View File

@ -12,11 +12,11 @@ command that mutates bot.settings changes routing without a restart.
bot.log = DPYLogger( bot.log = DPYLogger(
bot, guild_id, channel_id, bot, guild_id, channel_id,
colors=cfg.log_colors, # optional, falls back to defaults colors=log_colors, # optional, falls back to defaults
pings=cfg.authorized_devs, # mentioned on critical() pings=authorized_devs, # mentioned on critical()
timezone=cfg.timezone, timezone=tz,
footer=cfg.bot_footer, footer=bot_footer,
avatar=cfg.bot_avatar, avatar=bot_avatar,
) )
await bot.log.initialize() # resolves ids -> objects await bot.log.initialize() # resolves ids -> objects
await bot.log.success("user promoted", action="promote", actor=ctx.author) await bot.log.success("user promoted", action="promote", actor=ctx.author)