mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Merge branch 'master' of https://github.com/taciturasa/searchbot-discord
This commit is contained in:
commit
385c501ac4
4 changed files with 43 additions and 19 deletions
|
@ -22,28 +22,25 @@ class Logging():
|
|||
|
||||
# Sets info hook first
|
||||
self.info_hook = self.online.get_webhook(
|
||||
bot.config['HOOKS']['INFO_HOOK']
|
||||
if bot.config['HOOKS']['INFO_HOOK']
|
||||
bot.config['HOOKS']['INFO_HOOK']) \
|
||||
if bot.config['HOOKS']['INFO_HOOK'] \
|
||||
else None
|
||||
)
|
||||
|
||||
|
||||
# Sets other hooks or defaults them
|
||||
if self.info_hook:
|
||||
self.warn_hook = self.online.get_webhook(
|
||||
bot.config['HOOKS']['WARN_HOOK']
|
||||
if bot.config['HOOKS']['WARN_HOOK']
|
||||
bot.config['HOOKS']['WARN_HOOK']) \
|
||||
if bot.config['HOOKS']['WARN_HOOK'] \
|
||||
else self.info_hook
|
||||
)
|
||||
self.error_hook = self.online.get_webhook(
|
||||
bot.config['HOOKS']['ERROR_HOOK']
|
||||
if bot.config['HOOKS']['ERROR_HOOK']
|
||||
bot.config['HOOKS']['ERROR_HOOK']) \
|
||||
if bot.config['HOOKS']['ERROR_HOOK'] \
|
||||
else self.info_hook
|
||||
)
|
||||
self.debug_hook = self.online.get_webhook(
|
||||
bot.config['HOOKS']['DEBUG_HOOK']
|
||||
if bot.config['HOOKS']['DEBUG_HOOK']
|
||||
bot.config['HOOKS']['DEBUG_HOOK']) \
|
||||
if bot.config['HOOKS']['DEBUG_HOOK'] \
|
||||
else self.info_hook
|
||||
)
|
||||
|
||||
# If no hooks, nothing is there
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue