From 9f821cfb842c205e5f0f53a6ccb2f5aa52a5e7f8 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 12 Oct 2014 21:13:09 -0700 Subject: [PATCH] Added NFL scores option to .nfl --- pyircbot/modules/NFLLive.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyircbot/modules/NFLLive.py b/pyircbot/modules/NFLLive.py index 7e374c4..6f6c7cb 100644 --- a/pyircbot/modules/NFLLive.py +++ b/pyircbot/modules/NFLLive.py @@ -89,6 +89,13 @@ class NFLLive(ModuleBase): elif len(cmd.args)>0 and cmd.args[0]=="live": if not liveGamesStr == "": msgPieces.append("\x02Playing now:\x02 %s" % liveGamesStr) + elif len(cmd.args)>0 and cmd.args[0]=="scores": + if not liveGamesStr == "": + msgPieces.append("\x02Playing now:\x02 %s" % liveGamesStr) + if not gamesTodayStr == "": + msgPieces.append("\x02Earlier today:\x02 %s" % gamesTodayStr) + if not gamesEarlierWeekStr == "": + msgPieces.append("\x02Earlier this week: \x02 %s" % gamesEarlierWeekStr) else: if not liveGamesStr == "": msgPieces.append("\x02Playing now:\x02 %s" % liveGamesStr)