Skip to content

Commit

Permalink
Generate VERSION from git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ville committed Sep 11, 2015
1 parent 7dd15df commit b1005bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot/bot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'

require("./bot/utils")

VERSION = '0.13.1'
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()

-- This function is called when tg receive a msg
function on_msg_receive (msg)
Expand Down

0 comments on commit b1005bc

Please sign in to comment.