Advertisement
ninja-gen

Untitled

Nov 17th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. post(message, "Generating...");
  2.  
  3.             clicksify(data).then(response => {
  4.                 response = JSON.parse(response);
  5.                 if (response.status != 'success') return post(message, "There was an issue grabbing the account...");
  6.                 const embed = generate(message, `Your ${category.name} account data is available [**HERE**](${response})`);
  7.                 message.member.send(embed).then(linked => {
  8.                     post(message, `Your ${category.name} account data is available [**HERE**](${linked.url})`, true);
  9.                     console.log(`${message.author.tag} has generated an account with the category ${category.name}`);
  10.                     const log = new Discord.RichEmbed();
  11.                     log.setFooter(message.author.tag, message.author.avatarURL || message.author.defaultAvatarURL);
  12.                     log.setTitle("Account Generated");
  13.                     log.addField("Category", category.name[0].toUpperCase() + category.name.substring(1), true);
  14.                     log.addField("Server", message.member.guild.name, true);
  15.                     log.setColor("#36393F");
  16.                     const log_channel = client.channels.get('588585916642099210');
  17.                     if (log_channel) log_channel.send(log);
  18.                 }).catch(() => undefined);
  19.             });
  20.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement