Advertisement
Guest User

Untitled

a guest
Jun 24th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require_relative "tabornok/irc"
  4. require_relative "tabornok/console"
  5. require "colorize"
  6. require "thread"
  7.  
  8. class Tabornok
  9.  
  10. def initialize
  11. puts "Tabornok IRC Bot and Framework".yellow
  12. puts "Copyright (C) 2012 Jackneill".yellow
  13. puts "This program comes with ABSOLUTELY NO WARRANTY; for details type see <http://www.gnu.org/licenses/>.".yellow
  14. puts "This is free software, and you are welcome to redistribute it".yellow
  15. puts "under certain conditions; for details type see <http://www.gnu.org/licenses/>.".yellow
  16.  
  17. irc = Irc.new
  18. irc.connect "irc.rizon.net", 6667
  19. irc.auth "Tabornok"
  20.  
  21. thread_read_irc = Thread.new irc.read_irc
  22.  
  23. console = Console.new
  24. thread_read_console = Thread.new console.read_console
  25. end
  26.  
  27. end
  28.  
  29. tabornok = Tabornok.new
  30. tabornok.connect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement