gaber-elsayed

line

Aug 21st, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. client.on('message', ayo=> {
  2. const args = ayo.content.slice(prefix.length).trim().split(/ +/);
  3. const command = args.shift().toLowerCase();
  4. if(command == 'set-line')//هنا تكدر تعدله أمر سيت
  5. {
  6. if(ayo.channel.type === 'dm') return;
  7. if(!ayo.member.hasPermission('MANAGE_CHANNELS')) return;
  8. if(!args[0]) return ayo.channel.send('عليك وضع رابط صورة')
  9. ayo.channel.send("تم")
  10. db.set("AYO", args[0])
  11.  
  12. }
  13. });
  14.  
  15. client.on("message", ayo => {
  16. if(ayo.content===prefix +"line")//هنا أمر الي يحط لك خط
  17.  
  18. {
  19. ayo.channel.send(db.get("AYO"))
  20. ayo.delete()
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment