1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00
RedMew/server_commands.lua

23 lines
404 B
Lua
Raw Normal View History

2018-09-21 19:48:12 +01:00
local Poll = require 'poll'
2018-10-02 00:10:53 +01:00
local UserGroups = require 'user_groups'
2018-09-21 19:48:12 +01:00
local Public = {}
function Public.get_poll_result(id)
Poll.send_poll_result_to_discord(id)
end
2018-10-02 00:10:53 +01:00
function Public.regular_sync(names)
global.regulars = names
end
function Public.regular_promote(name)
global.regulars[name] = true
end
2018-10-02 00:16:36 +01:00
function Public.regular_demote(name)
2018-10-02 00:10:53 +01:00
global.regulars[name] = nil
end
2018-09-21 19:48:12 +01:00
return Public