ikibooru/main.lua
2024-06-01 17:40:11 +03:00

15 lines
472 B
Lua

local st, res = pcall(io.popen, "echo $SHELL", "r")
shelltype = st and res:read"*l" or ""
if not st or (shelltype ~= "/bin/bash" and shelltype ~= "/bin/sh" and shelltype ~= "/bin/ksh") then
error("Ikibooru currently runs only on Unix platforms + Bourne-like shell.")
end
local Pegasus = require"pegasus"
local Compress = require"pegasus.plugins.compress"
local BigGlobe = require"bigglobe"
Pegasus:new({
port = BigGlobe.cfg.port,
plugins = {}
}):start(require"core")