Skip to content
Browse files

Made the made to take any user@host with xmmp support

  • Loading branch information...
1 parent 9383085 commit 35e122f77944f28e277c222ffff169285d639f71 @hemanth committed
Showing with 4 additions and 5 deletions.
  1. +0 −1 TODO
  2. +4 −4 rgbot.rb
View
1 TODO
@@ -1,2 +1 @@
* Make this work with conference
-* Make this work with any mail id using xmpp
View
8 rgbot.rb
@@ -21,12 +21,12 @@
class L33ty
- def initialize(bot_name,bot_password)
+ def initialize(bot_id,bot_password)
# Initialize bot name and password
- @bot = bot_name
+ @bot = bot_id
@pass = bot_password
# Make a connection
- @jabber = Jabber::Simple.new(@bot+'@gmail.com',@pass)
+ @jabber = Jabber::Simple.new(@bot,@pass)
end
def invoke(msg)
@@ -169,6 +169,6 @@ def main
end
end
-l33t = L33ty.new('gmail_user_name','password')
+l33t = L33ty.new('jabber or gmail id as username@host','password')
l33t.main()

0 comments on commit 35e122f

Please sign in to comment.
Something went wrong with that request. Please try again.