Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_relative 'Mercury/Core'
- # Make sure there is an accounts.txt & phrases.txt in the same folder as this file
- # ACCOUNTS.TXT EXAMPLE: http://pastebin.com/raw/u6Zhbw16
- # PHRASES.TXT PHRASES: http://pastebin.com/raw/1a7VdZEZ
- account_file = "#{File.dirname(__FILE__)}/accounts.txt"
- phrase_file = "#{File.dirname(__FILE__)}/phrases.txt"
- penguins = []
- if(File.exists?(account_file))
- accounts = File.open(account_file,"r").read
- else
- puts "Please put accounts.txt in the same folder this script is in!"
- exit
- end
- if(File.exists?(phrase_file))
- phrases = File.open(phrase_file,"r").read
- else
- puts "Please put phrases.txt in the same folder this script is in!"
- exut
- end
- if(accounts === "")
- puts "Accounts file empty, please fill accounts\nwith penguins in this format USERNAME:PASSWORD:SERVER"
- exit
- else
- accounts = accounts.split("\n")
- end
- phrases = phrases.split("\n")
- 2.times do |x|
- accounts.count.times do |y|
- if(x === 0)
- penguins.push(Mercury.new())
- else
- name = accounts[y].split(":")
- penguins[y].login(name[0],name[1],name[2])
- end
- end
- end
- while true
- phrases.count.times do |x|
- penguins.count.times do |y|
- penguins[y].chat(phrases[x])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement