Settings - nortxort/pinylib GitHub Wiki

Pinylib's settings have been moved to their own file config.py since version 6.0.0. The settings names have been preserved for the most, but are now capitalized. The default settings should work in most cases, but you can change them as you see fit.

SWF_VERSION - The current swf file that tinychat uses. To get the version number you can go in to any room and do the command /version the chat will respond with something like: You are running TinyChat version 1.0.0.0669. the swf version is the last 4 digits. So in this case its 0669

CHAT_LOGGING - Enable/disable chat logging. Enabling this will log all chat events to a file. Chat events are when someone joins, leaves, sends a message and so on. The default location for logs is rooms/roomname/logs/. NOTE: This location will be created if set to True

DEBUG_MODE - Setting this to True will show additional info and errors in the console.

DEBUG_TO_FILE - This is not to be confused with CHAT_LOGGING or DEBUG_MODE. Setting this to True, will log information from core files in pinylib and it's sub modules. The name of the debug file can be set with DEBUG_FILE_NAME. The location of this log will be in the root directory. It is not recommended to leave this set to True for a long periode of time, as this file can get rather big. NOTE: This only has effect if you are running the sample_client.py If you plan on subclassing pinylib.py, then you must create a logger inside your subclass.

DEBUG_LEVEL - This controls the amount of information that will be written to the debug file (if enabled) The default is 30 (warnings, errors and critial) For more information, see this

CONSOLE_COLORS - Setting this to True, will use colors in the console for different events that may occur in the chat.

ENABLE_AUTO_JOB - Just like using a browser, this will fetch a file from tinychat's server every 5 minutte. It is recommended to set this to True, as it could help keep the client alive. Default value is 300 (seconds).

USE_24HOUR - The time format for the console and chat logs.

RESET_INIT_TIME - This has no effect when running the sample client.

RECONNECT_DELAY - In the event that pinylib should encount an error it can not recover from, pinylib will try to reconnect when this time has elapsed. The time is in secconds. The time will increase everytime a reconnect is done, however should the time get larger then 15 minuttes, then the time will be reset to it's original value. Default value is 60 (seconds)

AUTO_JOB_INTERVAL - The time interval for ENABLE_AUTO_JOB. Default value is 300 (seconds)

DEBUG_FILE_NAME - The file name of pinylib's debug log. See DEBUG_TO_FILE above.

CONFIG_PATH - The path where pinylib should create room folders. Inside the room folder is also where the log files are found.