User Tools

Site Tools


xchat

commands

/py load <filename>
    Load module with given filename. 
/py unload <filename|module name>
    Unload module with given filename, or module name. 
/py reload <filename|module name>
    Reload module with given filename, or module name. 
/load <filename>
    Does the same as /py load, but works only if filename has a .py extension (which is advised). 
/unload <filename>
    Does the same as /py unload, but works only with filenames and it must have a .py extension 
/py list
    List Python modules loaded. 
/py exec <command>
    Execute given Python command interactively. For example,

        *

          /py exec import xchat
          /py exec print xchat.get_info('channel') 

/py console

    Open the Python interactive console. This "console" is indeed a query with a special name (>>python<<). Every message you send to this query will be intercepted by the Python plugin interface, and interpreted interactively. Notice that the console and /py exec commands live in the same interpreter state. 
/py about
    Show some information about the Python plugin interface. 

references

xchat.txt · Last modified: 2013/08/03 05:04 (external edit)