summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/remotenickformat.tengo9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/remotenickformat.tengo b/contrib/remotenickformat.tengo
new file mode 100644
index 00000000..2ca856eb
--- /dev/null
+++ b/contrib/remotenickformat.tengo
@@ -0,0 +1,9 @@
+/*
+This script will return the current time in kitchen format if the protocol (of the remote bridge) isn't irc
+See https://github.com/d5/tengo/blob/master/docs/stdlib-times.md
+This result can be used in {TENGO} in RemoteNickFormat
+*/
+times := import("times")
+if protocol != "irc" {
+ result=times.time_format(times.now(),times.format_kitchen)
+}