Compare commits
No commits in common. "9b6cf3bd059b15fba01bd654a84fa747bc7c36ee" and "7935ea451107d4d05e0747faac14ca3d2cae2842" have entirely different histories.
9b6cf3bd05
...
7935ea4511
10
README.md
10
README.md
@ -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=log_colors, # optional; merged over sensible defaults
|
colors=cfg.log_colors, # optional; merged over sensible defaults
|
||||||
pings=authorized_devs, # mentioned on critical()
|
pings=cfg.authorized_devs, # mentioned on critical()
|
||||||
timezone=tz,
|
timezone=cfg.timezone,
|
||||||
footer=bot_footer,
|
footer=cfg.bot_footer,
|
||||||
avatar=bot_avatar,
|
avatar=cfg.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=log_colors, # optional, falls back to defaults
|
colors=cfg.log_colors, # optional, falls back to defaults
|
||||||
pings=authorized_devs, # mentioned on critical()
|
pings=cfg.authorized_devs, # mentioned on critical()
|
||||||
timezone=tz,
|
timezone=cfg.timezone,
|
||||||
footer=bot_footer,
|
footer=cfg.bot_footer,
|
||||||
avatar=bot_avatar,
|
avatar=cfg.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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user