csbot.plugins.xkcd module

csbot.plugins.xkcd.fix_json_unicode(data)[source]

Attempts to fix the unicode & HTML silliness that is included in the json data. Why Randall, Why?

class csbot.plugins.xkcd.xkcd(bot)[source]

Bases: csbot.plugin.Plugin

A plugin that does some xkcd things. Based on williebot xkcd plugin.

exception XKCDError[source]

Bases: Exception

randall_is_awesome(e)[source]

Well, Randall sucks at unicode actually :(

linkinfo_integrate(linkinfo)[source]

Handle recognised xkcd urls.

csbot.plugins.xkcd.get_info(number=None)[source]

Gets the json data for a particular comic (or the latest, if none provided).