This file is indexed.

/usr/share/nadoka/plugins/samplebot.nb is in nadoka 0.7.5-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
20
21
22
23
# -*-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: samplebot.nb 181 2007-02-20 15:39:21Z znz $
#

# bot_file_name and BotClassName must be same name
# (BotClassName.downcase == bot_file_name)

class SampleBot < Nadoka::NDK_Bot
  
  # Yes person
  def on_privmsg prefix, ch, msg
    send_notice(ch, "Yes, #{prefix.nick}!")
  end
  
end