Guest User

Untitled

a guest
Oct 19th, 2019
2,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js');
  2. const {prefix} = require('../settings.json');
  3. const superagent = require('superagent');
  4. const db = require('quick.db');
  5.  
  6. function premium(serverID) {
  7.     return db.has('premiumserver') && db.get('premiumserver').includes && db.get('premiumserver').includes((serverID));
  8. }
  9.  
  10. exports.run = async (client, message, args, tools) => {
  11.  
  12.   let nsfwlist = '**•** `4k` | Get a random 4k image\n**•** `anal` | Get a random anal image\n**•** `ass` | Get a random ass image\n**•** `pgif` | Get a random gif\n**•** `hentai` | Get a random hentail image\n**•** `pussy` | Get a random pussy image\n**•** `thigh` | Get a random thigh image\n**•** `gonewild` | Get a random gonewild image\n**•** `hthigh` | Get a random hthigh image\n**•** `midriff` | Get a random midriff image\n**•** `neko` | Get a random neko image';
  13.   if (!message.channel.nsfw) nsfwlist = `<:RhinoCross:633935955514097674> **Channel not marked as NSFW!**`;
  14.  
  15.   let modlist = '**•** `ban` | Ban a user\n**•** `unban` | Unban a user\n**•** `mute` | Mute a user\n**•** `unmute` | Unmute a user\n**•** `kick` | Kick a user\n**•** `purge` | Clear text';
  16.   if (!message.member.hasPermission("KICK_MEMBERS")) modlist = `<:RhinoCross:633935955514097674> **Your missing \`KICK_MEMBERS\` permission!**`;
  17.  
  18.   let musiclist = '**•** `nowplaying` | The current playing song\n**•** `play ` | Play a song\n**•** `queue` | View the loaded queue\n**•** `search ` | Search for a song\n**•** `pause` | Pause the queue\n**•** `resume` | Resume the queue\n**•** `skip` | Skip the current song\n**•** `shuffle` | Rearrange the queue\n**•** `volume` | View the volume\n**•** `stop` | Stop the queue';
  19.   if(!premium(message.guild.id)) musiclist = `<:premium:611982810739376148> **Server not premium - [Buy Here](https://www.patreon.com/join/DirectorDev)!**`;
  20.  
  21.   let ownerlist = '**•** `verify` | Give premium to a server\n**•** `reload` | Reload a command\n**•** `eval` | Evalute a command';
  22.   if (message.author.id !== "562408623784067074") ownerlist = `<:RhinoCross:633935955514097674> **You need to be a \`Rhino Developer\`!**`;
  23.  
  24.     let pages = ['**•** :information_source: Bot Commands\n**•** :computer: Server Commands\n**•** :rofl: Fun Commands\n**•** :camera_with_flash: Image Commands\n**•** :pencil: Text Commands\n**•** :video_game: Game Commands\n**•** :hammer_pick: Moderation Commands\n**•** :notes: Music Commands - <:premium:611982810739376148> **Premium Feature**\n**•** :crown: Owner Commands',
  25.                 '**•** `info` | Basic Information on the bot\n**•** `support` | Get support on the bot\n**•** `invite` | Invite to invite the bot\n**•** `ping` | The bots latency\n**•** `uptime` | The uptime of the bot\n**•** `upvote` | Upvote the bot\n**•** `premium` | Get premium for Rhino',
  26.                 '**•** `serverinfo` | Get server information\n**•** `membercount` | Get the member count\n**•** `userinfo` | Get information on a user\n**•** `channelinfo` | Get information about a channel\n**•** `roleinfo` | Get information about a role',
  27.                 '**•** `weather` | Get the weather of a location\n**•** `quote` | Get a random quote\n**•** `dadjoke` | Get a random joke\n**•** `calculate` | Calculate a sum\n**•** `8ball` | Ask a question\n**•** `advice` | Get a random advice\n**•** `catfact` | A random cat fact\n**•** `dogfact` | A random dog fact\n**•** `rate` | Rate a user',
  28.                 '**•** `dog` | A random dog picture\n**•** `cat` | A random cat picture\n**•** `bird` | A random bird picture\n**•** `bunny` | A random bunny picture\n**•** `cow` | A random cow picture\n**•** `fish` | A random fish picture\n**•** `space` | A random space picture\n**•** `meme` | A random meme\n**•** `avatar` | Get a members profile picture\n**•** `thuglife` | Make the user a thug\n**•** `triggered` | Get a user triggered\n**•** `wasted` | Get a user wanted\n**•** `wanted` | Get a user wanted',
  29.                 '**•** `backwards` | Write a text backwards\n**•** `flip` | Flip a text\n**•** `italic` | Word formate\n**•** `bold` | Word formate\n**•** `underline` | Word formate\n**•** `syntax` | Word formate\n**•** `block-quote` | Word formate',
  30.                 '**•** `rolldice` | Roll a dice\n**•** `slots` | Play a game of slots\n**•** `fortnite` | Get a users game status',
  31.                 `${nsfwlist}`,
  32.                 `${modlist}`,
  33.                 `${musiclist}`,
  34.                 `${ownerlist}`];
  35.     let page = 1;
  36.     let titles = ['Help Command | Rhino', ':information_source: Bot Commands', ':computer: Server Commands', ':rofl: Fun Commands', ':camera_with_flash: Image Commands', ':pencil: Text Commands', ':video_game: Game Commands', ':underage: NSFW Commands', ':hammer_pick: Moderation Commands', ':notes: Music Commands - <:premium:611982810739376148> Premium Feature', ':crown: Owner Commands'];
  37.     let title = 1;
  38.    
  39.     const embed = new Discord.RichEmbed();
  40.     embed.setColor(`#FFD41C`);
  41.     embed.setFooter(`Rhino - Multi Purpose Bot | Page ${page} of ${pages.length}`);
  42.     embed.setTitle(titles[title-1]);
  43.     embed.setThumbnail(message.author.avatarURL);
  44.     embed.setTimestamp();
  45.     embed.setDescription(`<a:verify:618820497878155265> **Prefix -** \`${prefix}\` **Version -** \`V 2.0\`\n**[Patreon](https://www.patreon.com/DirectorDev) | [Invite](https://discordapp.com/oauth2/authorize?client_id=621422647439523860&scope=bot&permissions=507378935&response_type=code&redirect_uri=https%3A%2F%2Fdiscord.gg%2F266qZr6) | [Support](https://discord.gg/ZFxYT27)**\n\n${pages[page-1]}`);
  46.  
  47.   message.channel.send(embed).then(msg => {
  48.    
  49.     msg.react('⬅').then( r => {
  50.       msg.react('🗑').then( r => {msg.react('⏹').then( r => {msg.react('➡').then( r => {msg.react('ℹ')
  51.      
  52.       const backwardsFilter = (reaction, user) => reaction.emoji.name === '⬅' && user.id === message.author.id;
  53.       const forwardsFilter = (reaction, user) => reaction.emoji.name === '➡' && user.id === message.author.id;
  54.       const close = (reaction, user) => reaction.emoji.name === '⏹' && user.id === message.author.id;
  55.       const del = (reaction, user) => reaction.emoji.name === '🗑' && user.id === message.author.id;
  56.       const info = (reaction, user) => reaction.emoji.name === 'ℹ' && user.id === message.author.id;
  57.      
  58.       const backwards = msg.createReactionCollector(backwardsFilter);
  59.       const forwards = msg.createReactionCollector(forwardsFilter);
  60.       const remove = msg.createReactionCollector(close);
  61.       const da = msg.createReactionCollector(del);
  62.       const n = msg.createReactionCollector(info);
  63.                                                                                        
  64.       backwards.on('collect', r => {
  65.         if (page === 1) return;
  66.         if (title === 1) return;
  67.         title--;
  68.         page--;
  69.         embed.setTitle(titles[title-1]);
  70.         embed.setDescription(`<a:verify:618820497878155265> **Prefix -** \`${prefix}\` **Version -** \`V 2.0\`\n**[Patreon](https://www.patreon.com/DirectorDev) | [Invite](https://discordapp.com/oauth2/authorize?client_id=621422647439523860&scope=bot&permissions=507378935&response_type=code&redirect_uri=https%3A%2F%2Fdiscord.gg%2F266qZr6) | [Support](https://discord.gg/ZFxYT27)**\n\n${pages[page-1]}`);
  71.         embed.setFooter(`Rhino - Multi Purpose Bot | Page ${page} of ${pages.length}`);
  72.         msg.edit(embed)
  73. r.remove(r.users.filter(u => u === message.author).first());
  74.       })
  75.      
  76.       forwards.on('collect', r => {
  77.         if (page === pages.length) return;
  78.         if (title === title.length) return;
  79.         title++;
  80.         page++;
  81.         embed.setTitle(titles[title-1]);
  82.         embed.setDescription(`<a:verify:618820497878155265> **Prefix -** \`${prefix}\` **Version -** \`V 2.0\`\n**[Patreon](https://www.patreon.com/DirectorDev) | [Invite](https://discordapp.com/oauth2/authorize?client_id=621422647439523860&scope=bot&permissions=507378935&response_type=code&redirect_uri=https%3A%2F%2Fdiscord.gg%2F266qZr6) | [Support](https://discord.gg/ZFxYT27)**\n\n${pages[page-1]}`);
  83.         embed.setFooter(`Rhino - Multi Purpose Bot | Page ${page} of ${pages.length}`);
  84.         msg.edit(embed)
  85. r.remove(r.users.filter(u => u === message.author).first());
  86.       })
  87.  
  88.     n.on('collect', r => {
  89.         embed.setTitle(`Paginator help`);
  90.         embed.setDescription(`**** :arrow_backward: goes to the previous page\n**** :arrow_forward: goes to the next page\n**** :wastebasket: deletes the whole message\n**** :stop_button: stops the interactive pagination session\n**** :information_source: shows this message`);
  91.         embed.setFooter(`Rhino - Multi Purpose Bot | Page ${page} of ${pages.length}`);
  92.         msg.edit(embed)
  93. r.remove(r.users.filter(u => u === message.author).first());
  94.     })
  95.  
  96.     da.on('collect', r => {
  97.         msg.delete()
  98.     })
  99.  
  100.       remove.on('collect', r => {
  101.         msg.clearReactions()
  102.     })
  103.    
  104.  
  105.      })
  106.     })
  107.    })
  108. })
  109.  
  110.   })
  111.  
  112. };
  113.  
  114.     exports.help = {
  115.         name: 'help',
  116.       };
Add Comment
Please, Sign In to add comment