def __init__(self): if "aaa_ts3Ext" in PluginHost.active: self.ts3host = PluginHost.active["aaa_ts3Ext"].ts3host else: self.ts3host = ts3SessionHost(self) if PluginHost.cfg.getboolean("general", "verbose"): ts3lib.printMessageToCurrentTab( "{0}[color=orange]{1}[/color] Plugin for pyTSon by [url=https://github.com/{2}]{2}[/url] loaded." .format(timestamp(), self.name, self.author))
def __init__(self): self.ts3host = ts3SessionHost(self) err, schids = ts3lib.getServerConnectionHandlerList() for schid in schids: (err, status) = ts3lib.getConnectionStatus(schid) self.onConnectStatusChangeEvent(schid, status, err) log( self, LogLevel.LogLevel_DEBUG, "[color=orange]{name}[/color] Plugin for pyTSon by [url=https://github.com/{author}]{author}[/url] loaded." .format(name=self.name, author=self.author), 0)
def __init__(self): self.ts3host = ts3SessionHost(self) schid = ts3lib.getCurrentServerConnectionHandlerID() (err, status) = ts3lib.getConnectionStatus(schid) self.onConnectStatusChangeEvent(schid, status, err) if PluginHost.cfg.getboolean("general", "verbose"): i = 1 for active in PluginHost.active: print(i, active) i += 1 ts3lib.printMessageToCurrentTab( "{0}[color=orange]{1}[/color] Plugin for pyTSon by [url=https://github.com/{2}]{2}[/url] loaded." .format(timestamp(), self.name, self.author))
print("sys.stdout.encoding:", sys.stdout.encoding) print("sys.stdout.isatty()", sys.stdout.isatty()) self = QApplication.instance() schid = getCurrentServerConnectionHandlerID() (_e, ownid) = getClientID(schid) clid = ownid ownID = ownid (_e, owncid) = getChannelOfClient(schid, ownid) cid = owncid ownCID = owncid if "aaa_ts3Ext" in PluginHost.active: ts3host = PluginHost.active["aaa_ts3Ext"].ts3host else: ts3host = ts3Ext.ts3SessionHost(next(iter(PluginHost.active.values()))) print('(pyTSon v{} on {} | Console started at: {:%Y-%m-%d %H:%M:%S})'.format( pytson.getVersion(), pytson.platformstr(), datetime.now())) print("Client curAPI: {} | LibVer: {} | LibVerNum: {}".format( pytson.getCurrentApiVersion(), ts3lib.getClientLibVersion(), ts3lib.getClientLibVersionNumber())) print("Python {} {} API: {}".format(sys.platform, sys.version, sys.api_version)) print("sys.executable: %s" % sys.executable) print("ts3lib.getAppPath(): %s" % ts3lib.getAppPath()) print("ts3lib.getConfigPath(): %s" % ts3lib.getConfigPath()) print("ts3lib.getResourcesPath(): %s" % ts3lib.getResourcesPath()) print("ts3lib.getPluginPath(): %s" % ts3lib.getPluginPath()) print("pytson.getConfigPath(): %s" % pytson.getConfigPath()) print("pytson.getPluginPath(): %s" % pytson.getPluginPath())