Advertisement
ninja-gen

Untitled

Nov 1st, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This is the bots required node modules, certain aspects of the code will not work without this.
  2. const Discord = require("discord.js");
  3. const client = new Discord.Client();
  4. const fs = require("fs");
  5. const snekfetch = require('snekfetch');
  6. const request = require('superagent');
  7.  
  8. exports.run = async (client, message, args) => {
  9. if (message.author.id !== '444609097233465347') return message.channel.send('You scrub, what made you think you\'d be able to do that??');
  10.  request.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
  11.       .set('Authorization', 'dblTokenHere')
  12.       .send({ server_count: client.guilds.size })
  13.       .end();
  14.     message.reply("Successfully fetched the Discord Bot List API");
  15.     request.post(`https://bots.discord.pw/api/bots/${client.user.id}/stats`)
  16.       .set('Authorization', 'dblTokenHere')
  17.       .send({ server_count: client.guilds.size })
  18.       .end();
  19.     message.reply("Discord Bot List guild count updated");
  20.     message.reply("Bot List page updated, Finished :white_check_mark:");
  21.   }
  22.  
  23. exports.conf = {
  24.     enabled: true,
  25.     guildOnly: false,
  26.     aliases: [],
  27.     permLevel: 0
  28.   };
  29.  
  30. exports.help = {
  31.     name: 'dbl',
  32.     description: 'Updates the bots server count on the discord bot list',
  33.     permissions: 'Bot Owner Only!',
  34.     usage: 'nb/dbl',
  35.     group: 'Control Module'
  36.   };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement