Eggdrop Documentation - 10. Global variables
10. Global variables
NOTE: All config file variables are also global.
- botnick
Value: the current nickname the bot is using (for example: "Valis", "Valis0", etc.)
Module: server
- botname
Value: the current nick!user@host that the server sees (for example: "Valis!valis@crappy.com")
Module: server
- server
Value: the current server's real name (what server calls itself) and port bot is connected to (for example: "irc.math.ufl.edu:6667") Note that this does not nececerilly match the servers internet address.
Module: server
- serveraddress
Value: the current server's internet address (hostname or IP) and port bot is connected to. This will correspond to the entry in server list (for example: "eu.undernet.org:6667"). Note that this does not necessarily match the name server calls itself.
Module: server
- version
Value: current bot version "1.1.2+pl1 1010201 pl1"; first item is the text version, second item is a numerical version, and any following items are the names of patches that have been added
Module: core
- numversion
Value: the current numeric bot version (for example: "1010201"). Numerical version is in the format of "MNNRRPP", where:
M
major release number
NN
minor release number
RR
sub-release number
PP
patch level for that sub-release
Module: core
- uptime
Value: the unixtime value for when the bot was started
Module: core
- server-online
Value: the unixtime value for when the bot connected to its current server
Module: server
- lastbind
Value: the last command binding which was triggered. This allows you to identify which command triggered a Tcl proc.
Module: core
- isjuped
Value: 1 if bot's nick is juped(437); 0 otherwise
Module: server
- handlen
Value: the value of the HANDLEN define in src/eggdrop.h
Module: core
- config
Value: the filename of the config file Eggdrop is currently using
Module: core