Changeset

10122:95814c597836

prosodyctl: Created a custom function, 'test', that prints back a welcoming message
author João Duarte <jvsDuarte08@gmail.com>
date Fri, 07 Jun 2019 11:36:13 +0100
parents 10044:4fd27023224a
children 10123:5d132d4aac55
files prosodyctl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]]);