From 808c62190d6ed88f29df92871f810177b540c8a1 Mon Sep 17 00:00:00 2001 From: Mark Kretschmann Date: Mon, 31 Jul 2006 14:22:28 +0000 Subject: [PATCH] Initial import of the "time" plugin by Ian Monroe. Allows to view the local time of a given user. --- data/rbot/plugins/time.rb | 106 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 data/rbot/plugins/time.rb diff --git a/data/rbot/plugins/time.rb b/data/rbot/plugins/time.rb new file mode 100644 index 00000000..f13f5a80 --- /dev/null +++ b/data/rbot/plugins/time.rb @@ -0,0 +1,106 @@ +# Time Zone Plugin for rbot +# (c) 2006 Ian Monroe +# Licensed under MIT License. + +require 'tzinfo' + +class TimePlugin < Plugin + + def help(plugin, topic="") + "time