Explorar el Código

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

Helge Jung hace 9 años
padre
commit
e4c01f876a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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((