We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2d24c6 commit c03b72eCopy full SHA for c03b72e
plugins/missionstats/listener.py
@@ -241,6 +241,10 @@ async def _process_event(self, server: Server) -> None:
241
title=title)
242
else:
243
channel = self.bot.get_channel(config['mission_end'].get('channel'))
244
+ if not channel:
245
+ self.log.warning("Missionstats: you have no valid mission_end channel configured "
246
+ "in your missionstats.yaml")
247
+ return
248
report = Report(self.bot, self.plugin_name, 'missionstats.json')
249
env = await report.render(stats=stats, mission_id=server.mission_id,
250
sides=[Coalition.BLUE, Coalition.RED], title=title)
0 commit comments