Hilbish/nature/commands/exit.lua

8 lines
150 B
Lua

local bait = require 'bait'
local commander = require 'commander'
commander.register('exit', function()
bait.throw('hilbish.exit')
os.exit(0)
end)