1 local parse_xkcd_list; |
1 local parse_xkcd_list; |
2 local xkcd_list_updated_at = 0; |
2 local xkcd_list_updated_at = 0; |
3 local xkcd_list = { }; |
3 local xkcd_list = { }; |
|
4 local handle_xkcd_command; |
4 |
5 |
5 function riddim.plugins.xkcd(bot) |
6 function riddim.plugins.xkcd(bot) |
6 require "net.httpclient_listener"; |
7 require "net.httpclient_listener"; |
7 local http = require("net.http"); |
8 local http = require("net.http"); |
8 bot:hook("commands/xkcd", function(command) |
9 bot:hook("commands/xkcd", function(command) |