old_contents: from .abalbots import Abalbots
  from .bugsnag import BugsnagReporting
  from .datadog import Datadog
  from .monitorchannel import MonitorChannel
  from .sentry import SentryErrorReporting
  
  
  def setup(bot):
      if 'discordpw_token' in bot.cfg['monitoring']:
          bot.add_cog(Abalbots(bot))
  
      if 'bugsnag' in bot.cfg['monitoring']:
          bot.add_cog(BugsnagReporting(bot))
  
      if 'datadog' in bot.cfg['monitoring']:
          bot.add_cog(Datadog(bot))
  
      if 'raven_client_url' in bot.cfg['monitoring']:
          bot.add_cog(SentryErrorReporting(bot))
  
      bot.add_cog(MonitorChannel(bot))
  
new_contents: from .abalbots import Abalbots
  from .bugsnag import BugsnagReporting
  from .datadog import Datadog
  from .monitorchannel import MonitorChannel
  from .sentry import SentryErrorReporting
  
  
  def setup(bot):
      cogs = {
          'discordpw_token': Abalbots,
          'bugsnag': BugsnagReporting,
          'datadog': Datadog,
          'raven_client_url': SentryErrorReporting
      }
  
      for config_key, cog in cogs.items():
          if config_key in bot.cfg.get('monitoring', {}):
              bot.add_cog(cog(bot))
  
      bot.add_cog(MonitorChannel(bot))
  
subject: clean up monitoring setup