Built-In Variables
From IRCBotWiki
IRCBot Built-In Variables It is intended that in all user-defined messages (eg. ircbot.text) should be able to use these variables. It has not been implemented everywhere, so please open a support ticket or leave a post on the Bug Tracker at ShoutIRC to let me know.
%color => Hex Code 0x03, this is the same thing as pressing Ctrl+K in mIRC %bold => Hex Code 0x02, this is the same thing as pressing Ctrl+B in mIRC \n => Line Feed, this combined with \r are used for making multi-line commands. \r => Carriage Return, this combined with \n are used for making multi-line commands. Example: PRIVMSG %chan :blah\r\nPRIVMSG %chan :more blah Please note that to comply with the IRC protocol (see: RFC 1459 and RFC 2812), you must use \r\n, not just \n.
%dj => The current DJ %playlist => The URL to the current DJ's playlist %song => The currently playing song %version => IRCBot's version string %build_date => The date IRCBot was built %build_time => The time IRCBot was built %uptime => How long IRCBot has been running
%req => Tells whether requests are currently On or Off, in Multi Sound Server Mode, all but the first server will say Off %num => In Multi Sound Server Mode, this will be the stream number (0-15), not processed in single server mode %clients => The number of listeners on your stream(s) %peak => The highest number of people that have been on your stream(s) at once %max => The maximum # of people who can listen to your stream(s) at once
These variables are available only if you have AutoDJ loaded:
%ratings% => Tells whether the ratings system is enabled or not, will be Off or On. %rating% => The rating of the current file, or 0 if it is not rated or the ratings system is off. %votes% => The number of votes for the current file, or 0 if it is not rated or the ratings system is off. %timeleft_milli% => The number of milliseconds left in the currently playing file, or 0 otherwise. %timeleft_secs% => The number of seconds left in the currently playing file, or 0 otherwise.
| IRCBot v • d • e
|
|---|
| IRCBot main pages |
| Main Page • Installation • Changelog • Commands • Plugins • FAQ • Configuration• Credits • Remote Client • Buffered Send • Built-In Variables • Multi Sound Server Mode |
| Auto DJ Pages |
| Auto DJ Main Page • WebRequest System • Scheduler • MP3 Encoder • Voice Support • MySQL Plugin |
