⇤ ← Revision 1 as of 2015-04-18 19:20:08
Size: 1397
Comment:
|
← Revision 2 as of 2015-04-18 19:20:27 ⇥
Size: 1392
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
// check bot version on post-3166 bots (simplified) | // check bot version on post-3166 bots (simplified) |
BuildVersion
Usage: |
BuildVersion |
Example: |
echo BuildVersion |
This constant returns the version number of the running bot.
// check bot version to make sure it is 3167 or later (simplified), compatible with old bots @BuildVersion = "" // this will assign value on older bots, silently error on newer bots if BuildVersion < "3167" echo "This script requires version 3167 or later" if BuildVersion < "3167" end // check bot version on post-3166 bots (simplified) if BuildVersion < "3200" die "This script requires version 3200 or later" // note, "die" command may not be available on old bots