mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Updated cricket plugin
This commit is contained in:
parent
dc896b27d4
commit
90397f8160
@ -3,8 +3,8 @@ import urllib2
|
|||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
||||||
score_url = "http://api.scorescard.com/?type=score&teamone=Australia&teamtwo=England"
|
#score_url = "http://api.scorescard.com/?type=score&teamone=Australia&teamtwo=England"
|
||||||
#score_url = None
|
score_url = None
|
||||||
|
|
||||||
summary = None
|
summary = None
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ summary = None
|
|||||||
def prof_init(version, status):
|
def prof_init(version, status):
|
||||||
if score_url:
|
if score_url:
|
||||||
prof.register_timed(get_scores, 60)
|
prof.register_timed(get_scores, 60)
|
||||||
prof.register_command("/cricket", 0, 0, "/cricket", "Get latest cricket score.", "Get latest cricket score.", cmd_cricket)
|
prof.register_command("/cricket", 0, 0, "/cricket", "Get latest cricket score.", "Get latest cricket score.", cmd_cricket)
|
||||||
|
|
||||||
def prof_on_start():
|
def prof_on_start():
|
||||||
if score_url:
|
if score_url:
|
||||||
|
Loading…
Reference in New Issue
Block a user