1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00
RedMew/server_commands.lua
grilledham 0f3eba8042 ping
2018-11-19 20:13:45 +00:00

21 lines
497 B
Lua

local Poll = require 'features.gui.poll'
local UserGroups = require 'features.user_groups'
local Token = require 'utils.global_token'
local Public = {}
Public.get_poll_result = Poll.send_poll_result_to_discord
Public.regular_sync = UserGroups.sync_regulars
Public.regular_promote = UserGroups.server_add_regular
Public.regular_demote = UserGroups.server_remove_regular
function Public.raise_callback(func_token, data)
local func = Token.get(func_token)
func(data)
end
return Public