/usr/share/nadoka/plugins/cronbot.nb is in nadoka 0.7.6-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # -*-ruby-*-
#
# Copyright (c) 2004-2005 SASADA Koichi <ko1 at atdot.net>
#
# This program is free software with ABSOLUTELY NO WARRANTY.
# You can re-distribute and/or modify this program under
# the same terms of the Ruby's license.
#
#
# $Id: cronbot.nb 181 2007-02-20 15:39:21Z znz $
#
class CronBot < Nadoka::NDK_Bot
def on_timer t
@state.channels.each{|ch|
send_notice(ch, t.to_s)
}
end
end
|