diff --git a/sexiibot/core.py b/sexiibot/core.py index 8fafa89..147ed33 100644 --- a/sexiibot/core.py +++ b/sexiibot/core.py @@ -1,3 +1,30 @@ #!/bin/env python -#TODO +import os +import subprocess + +class Sexiibot(object): + """Core sexiibot class""" + + def __init__(self, new=True, server, port=None, ssl=False, channel, nick, realname=None, extensions, iipath=None) + if new: + self.__server = server + else: + self.__server = None + self.__port = port + self.__ssl = ssl + self.__channel = channel + self.__nick = nick + if realname = None: + self.__realname = nick + else: + self.__realname = realname + self.__extensions = extensions + self.__mode = None + self.__ircdir = "%s/irc/%s" % (os.environ['HOME'], server) + self.__iipath = iipath + + def start(self, new=True): + if new: + + subprocess.Popen([iipath, "-s", self.__server, "-n", self.__nick, "-f", self.__realname, "-e", "ssl"])