DY_YT

Aoi.js 3 custom prefix

Jun 24th, 2021 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bot.command({
  2. name: "setprefix",
  3. aliases: ['changeprefix', 'prefix'],
  4. code: `$author[Success]
  5. $description[**Done, my new prefix is** \`$message\`]
  6. $color[RANDOM]
  7. $setServerVar[prefix;$message]
  8. $onlyIf[$message[1]!=;**You have to put a prefix, example** \`$getServerVar[prefix]setprefix /\`]
  9. $onlyPerms[admin;$customEmoji[Rufy] **You dont have** \`ADMIN\` **perms**]`
  10. })
  11.  
  12. bot.variables({
  13.     prefix: "("
  14. })
  15.  
  16.  
  17. --------------------------------
  18. See full video
  19. $getServerVar[prefix]
Add Comment
Please, Sign In to add comment