summaryrefslogtreecommitdiffstats
path: root/modules/DDate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/DDate.rb')
-rw-r--r--modules/DDate.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/DDate.rb b/modules/DDate.rb
index af9912e..3c9f3e1 100644
--- a/modules/DDate.rb
+++ b/modules/DDate.rb
@@ -9,7 +9,13 @@ module Lain
return unless message.type == :groupchat
return unless /!ddate\b/ =~ message.body
- muc.send(Jabber::Message.new(message.to, IO.popen("ddate").gets(sep=nil).chomp))
+ muc.send(Jabber::Message.new(message.to, IO.popen("ddate").read.chomp))
+ end
+
+ def commands
+ {
+ '!ddate' => 'show Discordian date'
+ }
end
end
end