Viewing file on branch master
| / | contrib | remotenickformat.tengo |
| 1 | /* |
| 2 | This script will return the current time in kitchen format if the protocol (of the remote bridge) isn't irc |
| 3 | See https://github.com/d5/tengo/blob/master/docs/stdlib-times.md |
| 4 | This result can be used in {TENGO} in RemoteNickFormat |
| 5 | */ |
| 6 | times := import("times") |
| 7 | if protocol != "irc" { |
| 8 | result=times.time_format(times.now(),times.format_kitchen) |
| 9 | } |
| 10 |