gaber-elsayed

Code Upload PasteBin /Nomsy /hastebin || كود رفع اي شي تكتبه علي PasteBin Nomsy hastebin

Sep 17th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. client.on("message", async message => {
  2. if(message.content.startsWith(prefix + "hastebin")){
  3. let content = '';
  4. let fillter = m => m.author.id === message.author.id
  5. await message.channel.send(" hastebin اكتب الكود الان للرفع علي ").then(e => {
  6. message.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  7. .then(co => {
  8. content = co.first().content;
  9. co.first().delete();
  10. hastebin(content).then(r => {
  11. e.edit(`Hastebin Link ${r}`);
  12. }).catch(console.error);
  13. })
  14. })
  15. }
  16. });
  17.  
  18. // Nomsy Paste
  19. const h = require('nomsy-paste');
  20. client.on("message", async message => {
  21. if(message.content.startsWith(prefix + "nomsy")){
  22. let content = '';
  23. let fillter = m => m.author.id === message.author.id
  24. await message.channel.send(" nomsy اكتب الكود الان للرفع علي ").then(e => {
  25. message.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  26. .then(co => {
  27. content = co.first().content;
  28. co.first().delete();
  29. h(content, 'js').then(res => {
  30. e.edit(`Nomsy-Paste Link ${res}`);
  31. }).catch(console.error);
  32. })
  33. })
  34. }
  35. });
  36.  
  37. // PasteBin
  38. var pbin = require('pbin-guest');
  39. client.on("message", async message => {
  40. if(message.content.startsWith(prefix + "pastebin")){
  41. let content = '';
  42. let title = '';
  43. let fillter = m => m.author.id === message.author.id
  44. await message.channel.send(" pastebin اكتب الكود الان للرفع علي ").then(e => {
  45. message.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  46. .then(co => {
  47. title = co.first().content;
  48. co.first().delete();
  49. e.edit(`اكتب الكود ناو`)
  50.  
  51. message.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  52. .then(col=> {
  53. content = col.first().content;
  54. col.first().delete();
  55. pbin.paste({title: title, code: content}, '870d2b8b253779b0827c7512b2fe6c51', function(link, err){
  56. if(err){
  57. e.edit(err)
  58. }
  59. e.edit(link)
  60. });
  61. })
  62. })
  63. })
  64. }
  65. });
Advertisement
Add Comment
Please, Sign In to add comment