Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(isCommand(message.content, 'help')){
  2.             if(message.content.indexOf(' ') !== -1){
  3.                 var prt = message.content.split(' ')[1];
  4.  
  5.                 if(prt.toLowerCase() === 'admin'){
  6.                     message.channel.send("**Admin Commands**", {
  7.                         embed: {
  8.                             color: 1752220,
  9.                             description: "`" + initcmd + "setinit`: set initializer command to run commands\n"+
  10.                             "`" + initcmd + "listgroup`: list all groups that have admin access\n"+
  11.                             "`" + initcmd + "addgroup`: add a group to enable admin access\n"+
  12.                             "`" + initcmd + "remgroup`: removes a group from admin access\n"+
  13.                             "`" + initcmd + "setusername`: Set a username for the bot\n"+
  14.                             "`" + initcmd + "setavatar`: Set a avatar for the bot to use\n"+
  15.                             "`" + initcmd + "setgame`: Sets the name of the game the bot is playing\n"+
  16.                             "`" + initcmd + "setinit`: Sets the initial command\n"+
  17.                             "`" + initcmd + "reports`: View reports\n"+
  18.                             "`" + initcmd + "delreports`: Clear reports that have been read already\n"+
  19.                             "`" + initcmd + "exit`: Shutdown bot\n"
  20.                         }
  21.                     });
  22.                         return;
  23.                 }
  24.  
  25.                 if(prt.toLowerCase() === 'general'){
  26.                     message.channel.send("**General Commands**", {
  27.                         embed: {
  28.                             color: 1752220,
  29.                             description: "`" + initcmd+ "about`: About this bot\n" +
  30.                             "`" + initcmd+ "stats`: View stats\n" +
  31.                             "`" + initcmd+ "report`: Report a problem\n" +
  32.                             "`" + initcmd+ "source`: Source link\n" +
  33.                             "`" + initcmd+ "uptime`: How long the bot has been up\n" +
  34.                             "`" + initcmd+ "invite`: Get invite link to your bot\n" +
  35.                             "`" + initcmd+ "setvc`: Set the defualt channel your bot joins when ever the bot connects\n" +
  36.                             "`" + initcmd+ "join`: Bot will attempt to join your channel\n"
  37.                         }
  38.                     });
  39.                         return;
  40.                 }
  41.  
  42.                 if(prt.toLowerCase() === 'music'){
  43.                     message.channel.send("**Music Commands**", {
  44.                         embed: {
  45.                             color: 1752220,
  46.                             description: "`" + initcmd + "queue` or `playing`: To view all songs in queue\n" +
  47.                             "`" + initcmd + "play [YT_URL]`: Plays a song from a youtube link\n" +
  48.                             "`" + initcmd + "play [index_number]`: Plays a song from a file that has been saved to the bot\n" +
  49.                             "`" + initcmd + "play [search key term]`: Plays the first result of youtube search\n" +
  50.                             "`" + initcmd + "play [playlist name or index]`: Queues and plays all songs in a playlist\n" +
  51.                             "`" + initcmd + "play`: Plays song in queue if it has been stopped\n" +
  52.                             "`" + initcmd + "stop`: Stops the song\n" +
  53.                             "`" + initcmd + "skip`: Skips to the next song\n" +
  54.                             "`" + initcmd + "replay`: Stops and replays song from the start\n" +
  55.                             "`" + initcmd + "readd`: Adds the current song back into queue\n" +
  56.                             "`" + initcmd + "loop`: Loops the entire queue over and over, execute command to turn off\n" +
  57.                             "`" + initcmd + "local`: Displays all the songs saved by the bot\n" +
  58.                             "`" + initcmd + "remove [index_number]`: Removes a specific song from queue\n" +
  59.                             "`" + initcmd + "remove [#,#,#]`: Removes specific numbers seperated by commans in the queue\n" +
  60.                             "`" + initcmd + "save [YT_URL]`: Saves a song from youtube and stores it\n" +
  61.                             "`" + initcmd + "save`: Saves current song that's playing\n" +
  62.                             "`" + initcmd + "remlocal [index_number]`: Removes a song that has been saved locally\n" +
  63.                             "`" + initcmd + "playlist`: List all playlist\n" +
  64.                             "`" + initcmd + "playlist [playlist_index]`: List all songs of the playlist\n" +
  65.                             "`" + initcmd + "playlist save [PLAYLIST_NAME]`: Saves playlist\n" +
  66.                             "`" + initcmd + "playlist remove [playlist_index]`: Removes the playlist\n"+
  67.                             "`" + initcmd + "playlist remove [playlist_index] [track_index]`: Removes a track from a playlist specified\n"+
  68.                             "`" + initcmd + "playlist add [playlist_index] [YT_URL]`: Add a track to a playlist\n"+
  69.                             "`" + initcmd + "playlist rename [playlist_name or playlist_index] [new_playlist_name]`: Renames a playlist"
  70.                         }
  71.                     });
  72.                     return;
  73.                 }
  74.             } else{
  75.                 message.channel.send("**Commands**", {
  76.                     embed: {
  77.                         color: 1752220,
  78.                         description: "**Admin Commands**\n" +
  79.                         "`" + initcmd + "help admin`: View Admin commands\n"+
  80.                         "`" + initcmd + "help general`: View General commands\n"+
  81.                         "`" + initcmd + "help music`: View Music Commands\n"
  82.                     }
  83.                 });
  84.             }
  85.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement