We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd6af7 commit 5daa3fcCopy full SHA for 5daa3fc
1 file changed
scripts/daily_report.py
@@ -149,6 +149,15 @@ def get_github_metrics(self):
149
150
def get_discord_metrics(self):
151
"""Get Discord server metrics with detailed debugging"""
152
+ # Check if we have the required environment variables
153
+ if not self.discord_server_id:
154
+ print("❌ Discord: DISCORD_SERVER_ID environment variable is missing!")
155
+ return {'members': None}
156
+
157
+ if not self.discord_bot_token:
158
+ print("❌ Discord: DISCORD_BOT_TOKEN environment variable is missing!")
159
160
161
try:
162
headers = {'Authorization': f'Bot {self.discord_bot_token}'}
163
print(f"🔍 Discord Debug: Using server ID {self.discord_server_id}")
0 commit comments