aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/grafana/github_team_sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'arthur/exts/grafana/github_team_sync.py')
-rw-r--r--arthur/exts/grafana/github_team_sync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/arthur/exts/grafana/github_team_sync.py b/arthur/exts/grafana/github_team_sync.py
index 7bc6144..43500cb 100644
--- a/arthur/exts/grafana/github_team_sync.py
+++ b/arthur/exts/grafana/github_team_sync.py
@@ -157,9 +157,9 @@ class GrafanaGitHubTeamSync(commands.Cog):
async def setup(bot: KingArthur) -> None:
"""Add cog to bot."""
- if CONFIG.grafana_token:
+ if CONFIG.grafana_token and CONFIG.github_token:
await bot.add_cog(GrafanaGitHubTeamSync(bot))
else:
- logger.warning("Not loading Grafana Github team sync grafana_token not set")
-
- await bot.add_cog(GrafanaGitHubTeamSync(bot))
+ logger.warning(
+ "Not loading Grafana Github team sync as grafana_token and/or github_token are not set"
+ )