plugins/xkcd.lua

changeset 107
441ec8dcdfde
parent 98
1f365028aae1
child 108
70db447e3669
equal deleted inserted replaced
106:99d9d958bb09 107:441ec8dcdfde
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)

mercurial