Skip to content

Instantly share code, notes, and snippets.

@Jackzmc
Created August 29, 2017 01:42
Show Gist options
  • Save Jackzmc/46fefc4172cf10395bce4714a371ed5c to your computer and use it in GitHub Desktop.
Save Jackzmc/46fefc4172cf10395bce4714a371ed5c to your computer and use it in GitHub Desktop.
caedos example
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