Explorar o código

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

Helge Jung %!s(int64=9) %!d(string=hai) anos
pai
achega
e4c01f876a
Modificáronse 1 ficheiros con 1 adicións e 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((