2018-11-16 18:46:17 +02:00
|
|
|
local Poll = require 'features.gui.poll'
|
|
|
|
local UserGroups = require 'features.user_groups'
|
2018-11-19 22:13:45 +02:00
|
|
|
local Token = require 'utils.global_token'
|
2018-09-21 20:48:12 +02:00
|
|
|
|
|
|
|
local Public = {}
|
|
|
|
|
2018-10-03 22:03:19 +02:00
|
|
|
Public.get_poll_result = Poll.send_poll_result_to_discord
|
2018-09-21 20:48:12 +02:00
|
|
|
|
2018-10-03 22:03:19 +02:00
|
|
|
Public.regular_sync = UserGroups.sync_regulars
|
2018-10-02 01:10:53 +02:00
|
|
|
|
2018-10-03 22:03:19 +02:00
|
|
|
Public.regular_promote = UserGroups.server_add_regular
|
2018-10-02 01:10:53 +02:00
|
|
|
|
2018-10-03 22:03:19 +02:00
|
|
|
Public.regular_demote = UserGroups.server_remove_regular
|
2018-10-02 01:10:53 +02:00
|
|
|
|
2018-11-19 22:13:45 +02:00
|
|
|
function Public.raise_callback(func_token, data)
|
|
|
|
local func = Token.get(func_token)
|
|
|
|
func(data)
|
|
|
|
end
|
|
|
|
|
2018-09-21 20:48:12 +02:00
|
|
|
return Public
|