# Author: # Copyright: All Content Unless Otherwise Stated Copyright © 2008 Foxonastick.com # License: BSD license require 'rbot/plugins' class OperServ < Plugin # Modify The Following Values Which Are In CAPITALS. Or The Bot Won't Be Able To Oper Or Execute Oper Commands. Config.register Config::StringValue.new('oper.chan', :default => "#OPER CHANNEL USERS JOIN AUTOMATICALLY JOIN ONCE THEY BECOME OPER") Config.register Config::StringValue.new('user.name', :default => "BOT'S OPER USERNAME HERE") Config.register Config::StringValue.new('pass.word', :default => "BOT'S OPER PASSWORD HERE") Config.register Config::StringValue.new('bot.host', :default => "BOT'S HOSTNAME WHEN BOT IS REGULAR USER (WITHOUT @ IN FRONT), e.g bot@lol.com, the hostname for this is lol.com") # DON'T MODIFY ANYTHING AFTER THIS LINE def help(plugin, topic="") case plugin when "oper" return "oper : Allows bot to execute commands in oper mode, once command is executed the bot will downgrade to regular user" when "wallops" return "wallops : send a message to all users with user mode +w" when "globops" return "globops : send a message to all IRCops" when "chatops" return "chatops : send a message to all IRCops with user mode +c" when "locops" return "locops : send a message to all local IRCops" when "adchat" return "adchat : send a message to all Admins" when "nachat" return "nachat : send a message to Net Admins" when "kill" return "kill : disconnect a user from the network" when "kline" return "kline