Rewrite in Telethon #1
2
bot.py
2
bot.py
|
@ -21,7 +21,7 @@ Xkcd = namedtuple('Xkcd', ['title', 'link', 'transcript', 'alt', 'number'])
|
||||||
|
|
||||||
URL_FMT_STR = "http://www.ohnorobot.com/index.php?Search=Search&comic=56&s={}"
|
URL_FMT_STR = "http://www.ohnorobot.com/index.php?Search=Search&comic=56&s={}"
|
||||||
# FIXME HTML parsemode + escaping
|
# FIXME HTML parsemode + escaping
|
||||||
MSG_FMT_STR = "[{number}]({link}): *{title}*\n\n_{alt}_"
|
MSG_FMT_STR = "[{number}]({link}): **{title}**\n\n__{alt}__"
|
||||||
XKCD_JSON_FMT_STR = "https://xkcd.com/{}/info.0.json"
|
XKCD_JSON_FMT_STR = "https://xkcd.com/{}/info.0.json"
|
||||||
MAX_SEARCH_RESULTS = 10
|
MAX_SEARCH_RESULTS = 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue