prosodyctl: Created a custom function, 'test', that prints back a welcoming message
authorJoão Duarte <jvsDuarte08@gmail.com>
Fri, 07 Jun 2019 11:36:13 +0100
changeset 10126 95814c597836
parent 10048 4fd27023224a
child 10127 5d132d4aac55
prosodyctl: Created a custom function, 'test', that prints back a welcoming message
prosodyctl
--- a/prosodyctl	Mon Jun 03 20:51:15 2019 +0200
+++ b/prosodyctl	Fri Jun 07 11:36:13 2019 +0100
@@ -85,6 +85,10 @@
 local commands = {};
 local command = table.remove(arg, 1);
 
+function commands.test()
+	show_message [[Well, hello there!]]
+end
+
 function commands.adduser(arg)
 	if not arg[1] or arg[1] == "--help" then
 		show_usage([[adduser JID]], [[Create the specified user account in Prosody]]);