Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b6cf3bd05 | ||
|
|
a90a0061b0 |
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user