

Print "Error " + str(Message) + ": " + Message Self._ServerSocket_.connect((self._Host_, self._Port_)) Self._ServerSocket_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM) _Info_ = "An irc bot class made by DTSCode" # bio about the user # start settersĭef Connect(self): # connect to the host and test for errors try: _Pass_ = "pass" # session password (not neccesary) _User_ = "DTSCode-Bot" # session username _Nick_ = "DTSCode-Bot" # nickname when talking

_ServerSocket_ = socket.socket() # socket to use to connect to host _Channel_ = "#cplusplus" # channel hosted by sever "" "IRC Session class to abstract the data" "" # irc class bio # *private* data members Import sys # for exit # IRC Session class to abstract the session # (and make my life easier) class IRC: Import socket # for connecting to the server #! /usr/bin/env python # Modules to import
