module Irc::Bot::Auth
This module contains the actual Authentication stuff
Public Class Methods
Source
# File lib/rbot/botuser.rb, line 629 def Auth.botowner return BotOwnerClass.instance end
Returns the only instance of BotOwnerClass
Source
# File lib/rbot/botuser.rb, line 605 def Auth.defaultbotuser return DefaultBotUserClass.instance end
Returns the only instance of DefaultBotUserClass
Source
# File lib/rbot/botuser.rb, line 923 def Auth.manager return ManagerClass.instance end
Returns the only instance of ManagerClass
Source
# File lib/rbot/botuser.rb, line 56 def Auth.random_password(l=8) pwd = "" l.times do pwd << (rand(26) + (rand(2) == 0 ? 65 : 97) ).chr end return pwd end
Generate a random password of length l