Selaa lähdekoodia

ffpb-fun: display warning on stdout if stats is None in greeting

Helge Jung 9 vuotta sitten
vanhempi
commit
e4c01f876a
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      modules/ffpb_fun.py

+ 1 - 0
modules/ffpb_fun.py

@@ -15,6 +15,7 @@ def shutdown(bot):
 @willie.module.rule(r'(?i)(hi|hallo|moin|morgen|guten morgen|re)[ \t]*$')
 def ffpb_greeting(bot, trigger):
 	if stats is None:
+		print("ffpb_greeting: stats is None -> keine Antwort")
 		return
 
 	greeting = random.choice((