-- Exposes commands for SerieBot . local base = _G module('SerieBot') base.require('luadchpp') local adchpp = base.luadchpp local autil = base.require('autil') base.assert(base['access'], 'access.lua must be loaded and running before seriebot.lua') local access = base.access local cm = adchpp.getCM() -- Ignore commands since they will be interpreted by SerieBot. local function ignore() end access.commands.next = { command = ignore, help = 'name', user_command = { name = _NAME .. autil.ucmd_sep .. 'Next', params = { autil.ucmd_line('Serie name') } } } access.commands.last = { command = ignore, help = 'name', user_command = { name = _NAME .. autil.ucmd_sep .. 'Last', params = { autil.ucmd_line('Serie name') } } } access.commands.new = { command = ignore, help = '- gives information on new episodes for series you are sharing', user_command = { name = _NAME .. autil.ucmd_sep .. 'New' } } access.commands.ignore = { command = ignore, help = 'name - ignore series in the +serie_new command', user_command = { name = _NAME .. autil.ucmd_sep .. 'Ignore', params = { autil.ucmd_line('Serie name') } } }