-
-
Save BitChop/08d56159e5ef745a9ad4d82717bda36e to your computer and use it in GitHub Desktop.
Method for detecting which game the script is run on.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dice = (()=>{try{engine.getState()}catch(e){return!0}return!1})(); | |
if (dice) console.log('This is bustadice'); | |
if (!dice) console.log('This is bustabit'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment