def set_default(self, on_off: bool = None):
"""Sets whether logging is on or off where unset.
Server overrides, global override, and attachments don't use this."""
if on_off is not None:
self.settings['default'] = on_off
if self.settings.get('default', False):
await self.bot.say("Logging is enabled by default.")
else:
await self.bot.say("Logging is disabled by default.")
self.save_json()
评论列表
文章目录