Created
August 29, 2017 01:42
-
-
Save Jackzmc/46fefc4172cf10395bce4714a371ed5c to your computer and use it in GitHub Desktop.
caedos example
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
module.exports = function(client, msg, arg, isPerm, isDM, upperM, splitM){ | |
if (arg === "WHERE"){ | |
//isDM would execute the code only if the user sent the command through a Direct Message. | |
if (isDM == true){ | |
msg.reply("You are executing this from a Direct Message!") | |
} | |
if (isPerm == true){ | |
msg.reply("You are permissioned!") | |
} | |
if (isPerm == false && isDM == false){ | |
msg.reply("You are a normal user!") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment