Facebook
From cross, 5 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 387
  1. const hastebin = require('hastebin-gen');
  2. const Discord = require('discord.js')
  3.  
  4. exports.run = (client, message, args) => {
  5.   if (message.channel.type !== 'dm') {
  6.     const ozelmesajkontrol = new Discord.RichEmbed()
  7.     .setColor(0x00AE86)
  8.     .setTimestamp()
  9.     .setAuthor(message.author.username, message.author.avatarURL)
  10.     .setDescription('Özel Mesajlarını Kontrol Et. :postbox:');
  11.     message.channel.sendEmbed(ozelmesajkontrol) }
  12.     const hastEmb = new Discord.RichEmbed()
  13.  hastebin(args.join(' '), "js").then(r => {
  14.       var hastLink = r
  15.       const hastEmb = new Discord.RichEmbed()
  16.       .setColor(0xFFF000)
  17.       .setURL(hastLink)
  18.       .addField('Link: ', `${hastLink}`)
  19.       .setFooter('CodARE')
  20.        return message.author.sendEmbed(hastEmb)
  21.   }).catch(console.error);  
  22.    
  23. };
  24.  
  25.  
  26.  
  27. exports.conf = {
  28.   enabled: true,
  29.   guildOnly: false,
  30.   aliases: [],
  31.   permLevel: 0
  32. };
  33.  
  34. exports.help = {
  35.   name: 'hastebin',
  36.   description: 'Hastebine kod/cümle yüklersiniz.',
  37.   usage: 'hastebin [kod/cümle]'
  38. };
  39.