summaryrefslogtreecommitdiffstats
path: root/modules/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/date.rb')
-rw-r--r--modules/date.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/date.rb b/modules/date.rb
new file mode 100644
index 0000000..44c8ff9
--- /dev/null
+++ b/modules/date.rb
@@ -0,0 +1,6 @@
+def module_date(msg_body, sender_nick, config)
+ if msg_body =~ /^!date/
+ answer = `date "+%A %-d %B %Y à %HH %Mm %Ss et %Nns"`.chomp.capitalize
+ return answer
+ end
+end \ No newline at end of file