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 |