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
|