enfin commencé le code, pas trop tôt hein ?
This commit is contained in:
parent
aec3062c83
commit
7b9eaaf850
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue