new_command
Let's you create a new command with requires only one argument. This is not meant to be used for arguments with multiple arguments. For that please use new_eventlistener.
Example
bot.new_command({
Name = ".Hi",
Callback = function(content, channel_id, data)
print(content) -- ".Hi"
print(channel_id)
table.foreach(data, print) -- all data in total
end
})
Last updated