Module: Irc::Bot::Auth
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb,
/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb
Overview
This module contains the actual Authentication stuff
Defined Under Namespace
Classes: BotOwnerClass, BotUser, Command, DefaultBotUserClass, InvalidPassword, ManagerClass, PermissionSet
Class Method Summary (collapse)
-
+ (Object) botowner
Returns the only instance of BotOwnerClass.
-
+ (Object) defaultbotuser
Returns the only instance of DefaultBotUserClass.
-
+ (Object) manager
Returns the only instance of ManagerClass.
-
+ (Object) random_password(l = 8)
Generate a random password of length l.
Class Method Details
+ (Object) botowner
Returns the only instance of BotOwnerClass
630 631 632 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb', line 630 def Auth.botowner return BotOwnerClass.instance end |
+ (Object) defaultbotuser
Returns the only instance of DefaultBotUserClass
606 607 608 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb', line 606 def Auth.defaultbotuser return DefaultBotUserClass.instance end |
+ (Object) manager
Returns the only instance of ManagerClass
924 925 926 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/botuser.rb', line 924 def Auth.manager return ManagerClass.instance end |
+ (Object) random_password(l = 8)
Generate a random password of length l
57 58 59 60 61 62 63 |
# File '/home/apoc/projects/ruby/rbot/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 |