To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
Pyeval
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
This module allows you to evaluate python code. You need modpython installed and loaded to use it.
When you put a > at the start of a line, it will be replaced by four spaces. This allows you to indent code. Here is an example:
def test(): >module.PutModule("Hello World!") <
You can get this module's source code here
Variables
- znc - The znc python module
- module - The loaded pyeval instance
- user - The user which pyeval is loaded as
- client - The current client
Arguments
This user module takes no arguments.
Read loading modules to learn more about loading modules.