예제 #1
0
 def __init__(self):
     Pdod.__init__(
         self,
         os.path.join(
             getdatadir() + os.sep + 'plugs' + os.sep +
             'jsb.plugs.sockets.mpd', 'mpd'))
     self.running = False
     self.lastsong = -1
예제 #2
0
    def __init__(self, fname):

        # call base constructor
        Pdod.__init__(self, fname)

        # make sure attributes are initialised
        for j in self.data.values():
            if not j.has_key('perms'):
                j['perms'] = []
            if not j.has_key('autovoice'):
                j['autovoice'] = 0
예제 #3
0
파일: channels.py 프로젝트: Petraea/jsonbot
    def __init__(self, fname):

        # call base constructor
        Pdod.__init__(self, fname)

        # make sure attributes are initialised
        for j in self.data.values():
            if not j.has_key('perms'):
                j['perms'] = []
            if not j.has_key('autovoice'):
                j['autovoice'] = 0
예제 #4
0
 def __init__(self):
     self.registered = False
     Pdod.__init__(self, getdatadir() + os.sep + 'plugs' + os.sep + 'jsb.plugs.nickserv' + os.sep + 'nickserv')
예제 #5
0
파일: seen.py 프로젝트: melmothx/jsonbot
 def __init__(self):
     self.datadir = getdatadir() + os.sep + 'plugs' + os.sep + 'jsb.plugs.common.seen'
     Pdod.__init__(self, os.path.join(self.datadir, 'seen.data'))
예제 #6
0
 def __init__(self):
     self.registered = False
     Pdod.__init__(
         self,
         getdatadir() + os.sep + 'plugs' + os.sep + 'jsb.plugs.nickserv' +
         os.sep + 'nickserv')
예제 #7
0
파일: mpd.py 프로젝트: code2u/jsb
 def __init__(self):
     Pdod.__init__(self, os.path.join(getdatadir() + os.sep + 'plugs' + os.sep + 'jsb.plugs.sockets.mpd', 'mpd'))
     self.running = False
     self.lastsong = -1
예제 #8
0
파일: sed.py 프로젝트: NURDspace/jsonbot
 def __init__(self):
     self.datadir = os.path.join(datadir, 'plugs', 'jsb.plugs.common.sed')
     Pdod.__init__(self, os.path.join(self.datadir, 'sed.data'))
     if not self.data:
         self.data = {}
예제 #9
0
    def __init__(self):
        Pdod.__init__(self, os.path.join(getdatadir() + os.sep + 'plugs' + os.sep \
+ 'bugtracker', 'bugtracker'))
        self.load()
예제 #10
0
 def __init__(self):
     self.datadir = os.path.join(datadir, 'plugs', 'jsb.plugs.common.sed')
     Pdod.__init__(self, os.path.join(self.datadir, 'sed.data'))
     if not self.data:
         self.data = {}
예제 #11
0
파일: seen.py 프로젝트: melmothx/jsonbot
 def __init__(self):
     self.datadir = getdatadir(
     ) + os.sep + 'plugs' + os.sep + 'jsb.plugs.common.seen'
     Pdod.__init__(self, os.path.join(self.datadir, 'seen.data'))
예제 #12
0
    def __init__(self):
        Pdod.__init__(self, os.path.join(getdatadir() + os.sep + 'plugs' + os.sep \
+ 'bugtracker', 'bugtracker'))
        self.load()