This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, socket, string, os, threading, time, random | |
from os import system | |
windowtitle = "IRC Bot" | |
system("title "+windowtitle) | |
host = raw_input("Hostname: ") | |
nickname = raw_input("Nickname: ") | |
password = raw_input("Password: ") | |
channel = raw_input("Channel: ") | |
PORT = 6667 | |
realname = nickname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse(): | |
try: | |
IRC_PRIVMSG_Information = [ | |
data.split( ":" )[ 1 ].split( "!" )[ 0 ], #nick | |
data.split( "!" )[ 1 ].split( "@" )[ 0 ], #user | |
data.split( " " )[ 0 ].split( "@" )[ 1 ], #host | |
data.split( " " )[ 2 ], #Channel, Message | |
":".join( data.split( ":" )[ 2: ] ), True ] # Channel or PM | |
if not IRC_PRIVMSG_Information[ 3 ][ 0 ] == "#": | |
IRC_PRIVMSG_Information[ 5 ] = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import socket | |
import string | |
import os | |
import threading | |
import time | |
import random | |
windowtitle = "Nezzbot IRC Client" | |
from os import system | |
system("title "+windowtitle) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import socket | |
import string | |
import os | |
import threading | |
windowtitle = "Nezzbot IRC Client" | |
from os import system | |
system("title "+windowtitle) | |
nickname = raw_input("Nickname: ") | |
password = raw_input("Password: ") |