Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. namespace Pikaboo
  2.  
  3. import System
  4. import Meebey.SmartIrc4net
  5.  
  6. server = "chat.freenode.net"
  7. port = 6667
  8. channel = "#vidyadev"
  9. botnick = "pikaboo"
  10.  
  11. def EntryPoint():
  12.         irc = IrcClient()
  13.  
  14.         irc.Encoding = System.Text.Encoding.UTF8
  15.         irc.SendDelay = 200
  16.         irc.ActiveChannelSyncing = true
  17.  
  18.         try:
  19.                 irc.Connect(server,port)
  20.         except:
  21.                 print "could not connect"
  22.        
  23.         if irc.IsConnected:
  24.                 print "connection successful"
  25.                 try:
  26.                         irc.Login(botnick,"pika",0,"","")
  27.                         irc.RfcJoin(channel)
  28.                         irc.SendMessage(SendType.Message,channel,"pikatwo is shit")
  29.                         irc.Listen()
  30.                 except:
  31.                         print "error!"
  32.  
  33.         Console.ReadLine()
  34.  
  35. EntryPoint()