nadoka/nadoka

View on GitHub
plugins/samplebot.nb

Summary

Maintainability
Test Coverage
# -*-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$
#

# 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