generated from your-land/yl_template
Minor refactoring
This commit is contained in:
parent
5cbfa43457
commit
9d5daf6e63
@ -2,8 +2,8 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_add"
|
||||
local chatcommand_definition = {
|
||||
params = "<message>$<frequency in seconds>$<runtime in seconds>",
|
||||
description = "Sends the message each frequency seconds for a maximum number of runtime seconds." ..
|
||||
"\nExample: /" .. yl_ticker.settings.chatcommand_domain ..
|
||||
"_add Runs every 50 seconds for one hour (= 3600 seconds)$50$3600",
|
||||
"\nExample: /" .. chatcommand_cmd ..
|
||||
" Runs every 50 seconds for one hour (= 3600 seconds)$50$3600",
|
||||
privs = {[yl_ticker.settings.admin_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_add(name, param)
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_copy"
|
||||
local chatcommand_definition = {
|
||||
params = "<ticker ID>",
|
||||
description = "Open the ticker with ID in a formspec, so it can be copied." ..
|
||||
"\nExample: /" .. yl_ticker.settings.chatcommand_domain .. "_copy 5",
|
||||
"\nExample: /" .. chatcommand_cmd .. " 5",
|
||||
privs = {[yl_ticker.settings.user_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_copy(name, param)
|
||||
|
@ -1,8 +1,8 @@
|
||||
local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_delete"
|
||||
local chatcommand_definition = {
|
||||
params = "<ticker ID>",
|
||||
description = "Delete the ticker ID." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_delete 5",
|
||||
description = "Delete the ticker ID." .. "\nExample: /" .. chatcommand_cmd ..
|
||||
" 5",
|
||||
privs = {[yl_ticker.settings.admin_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message =
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_help"
|
||||
local chatcommand_definition = {
|
||||
params = "",
|
||||
description = "Lists the command help for the ticker." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_help",
|
||||
chatcommand_cmd,
|
||||
privs = {[yl_ticker.settings.user_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_help(name, param)
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_list"
|
||||
local chatcommand_definition = {
|
||||
params = "<ticker ID>",
|
||||
description = "List tickers with ID to you." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_list 5",
|
||||
chatcommand_cmd .. " 5",
|
||||
privs = {[yl_ticker.settings.user_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_list(name, param)
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_list_all"
|
||||
local chatcommand_definition = {
|
||||
params = "",
|
||||
description = "Lists all tickers to you." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_list_all",
|
||||
chatcommand_cmd,
|
||||
privs = {[yl_ticker.settings.user_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_list_all(name,
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_say"
|
||||
local chatcommand_definition = {
|
||||
params = "<ticker ID>",
|
||||
description = "Say the ticker with ID in main chat." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_say 5",
|
||||
chatcommand_cmd .. " 5",
|
||||
privs = {[yl_ticker.settings.admin_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_say(name, param)
|
||||
|
@ -2,7 +2,7 @@ local chatcommand_cmd = yl_ticker.settings.chatcommand_domain .. "_say_all"
|
||||
local chatcommand_definition = {
|
||||
params = "",
|
||||
description = "Say all tickers in main chat." .. "\nExample: /" ..
|
||||
yl_ticker.settings.chatcommand_domain .. "_say_all",
|
||||
chatcommand_cmd,
|
||||
privs = {[yl_ticker.settings.admin_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_ticker.chatcommand_ticker_say_all(name,
|
||||
|
Loading…
Reference in New Issue
Block a user