module Irc::Bot::Auth

This module contains the actual Authentication stuff

Public Class Methods

botowner() click to toggle source

Returns the only instance of BotOwnerClass

# File lib/rbot/botuser.rb, line 630
def Auth.botowner
  return BotOwnerClass.instance
end
defaultbotuser() click to toggle source

Returns the only instance of DefaultBotUserClass

# File lib/rbot/botuser.rb, line 606
def Auth.defaultbotuser
  return DefaultBotUserClass.instance
end
manager() click to toggle source

Returns the only instance of ManagerClass

# File lib/rbot/botuser.rb, line 924
def Auth.manager
  return ManagerClass.instance
end
random_password(l=8) click to toggle source

Generate a random password of length l

# File lib/rbot/botuser.rb, line 57
def Auth.random_password(l=8)
  pwd = ""
  l.times do
    pwd << (rand(26) + (rand(2) == 0 ? 65 : 97) ).chr
  end
  return pwd
end