Sfoglia il codice sorgente

add scripts/date.md

Signed-off-by: hwipl <33433250+hwipl@users.noreply.github.com>
hwipl 6 anni fa
parent
commit
a12bbb01ed
1 ha cambiato i file con 42 aggiunte e 0 eliminazioni
  1. 42 0
      scripts/date.md

+ 42 - 0
scripts/date.md

@@ -0,0 +1,42 @@
+# date.tcl
+
+The script [date.tcl](date.tcl) shows the current date and time with the
+`!date` command.
+
+## Setup
+
+You can enable the `!date` command for a specific channel by setting the
+`date` flag for the channel in your Eggdrop. For example, enable the script in
+the channel `#test` with the following Eggdrop command:
+
+```
+.chanset #test +date
+```
+
+Accordingly, you can disable the `!date` command for a specific channel by
+removing the `date` flag from the channel in your Eggdrop. For example, disable
+the script in the channel `#test` with the following Eggdrop command:
+
+```
+.chanset #test -date
+```
+
+## Usage
+
+After enabling the script and the `!date` command in a channel, you can use the
+`!date` command in that channel as shown below.
+
+Show the current date and time:
+
+```
+!date
+```
+
+## Examples
+
+Example of showing the current date and time (in the timezone of the bot):
+
+```
+14:16 <@hwipl> !date
+14:16 < FooBot> Fri Jan 10 13:16:18 +0000 2020
+```