plugins/version.lua

changeset 76
cecdfba8e625
parent 37
85b3f2a96edb
child 105
4234c8789cc6
equal deleted inserted replaced
75:1b934a878e84 76:cecdfba8e625
3 local xmlns_version = "jabber:iq:version"; 3 local xmlns_version = "jabber:iq:version";
4 4
5 function riddim.plugins.version(bot) 5 function riddim.plugins.version(bot)
6 bot.stream:add_plugin("version"); 6 bot.stream:add_plugin("version");
7 bot.stream.version:set{ 7 bot.stream.version:set{
8 name = "Riddim"; 8 name = bot.config.bot_name or "Riddim";
9 version = "alpha"; 9 version = bot.config.bot_version or "alpha";
10 platform = bot.config.bot_platform or _VERSION;
10 }; 11 };
11 12
12 bot:hook("commands/version", function (command) 13 bot:hook("commands/version", function (command)
13 local who, param = bot.stream.jid, command.param; 14 local who, param = bot.stream.jid, command.param;
14 if param then 15 if param then

mercurial