Python
Revision as of 14:39, 6 October 2024 by Geo (talk | contribs) (Created page with "== The python print() function doesn't do anything == The print() function in python only prints to stdout, it won't write to IRC or the partyline (unless you started Eggdrop in terminal mode with the -t flag). In order to print something to a channel, you'd need to import the putserv or putmsg Tcl command, or the putlog command to write to the partyline. <pre> from eggdrop.tcl import putmsg, putlog putlog("This sends to the partyline!") putmsg(chan, "This sends to a c...")
The python print() function doesn't do anything
The print() function in python only prints to stdout, it won't write to IRC or the partyline (unless you started Eggdrop in terminal mode with the -t flag). In order to print something to a channel, you'd need to import the putserv or putmsg Tcl command, or the putlog command to write to the partyline.
from eggdrop.tcl import putmsg, putlog putlog("This sends to the partyline!") putmsg(chan, "This sends to a channel!")