gaber-elsayed

reply

Apr 15th, 2021
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <client>.on("message", message => {
  2. if(message.author.bot) return;
  3.  
  4. let messages =
  5. {
  6. start : [ ["Hello", "Hi"] ],
  7. includ : [ ["Guys", "What ?"] ],
  8. end : [ ]
  9. }
  10. , find = messages.start.find(r => message.content.startsWith( r[0] ) ) || messages.includ.find(r => message.content.includes( r[0] ) )
  11. || messages.end.find(r => message.content.endsWith( r[0] ) )
  12.  
  13. if(find) return message.channel.send(find[1])
  14. })
  15.  
  16. اني شفت انو اكو مليون كود رد تلقائي هنا فـ كلت انو كلهم زبالة وبدائيين وسويت احسن منهم
  17. ملاحظة : الكود غير موجه للنسخ لصق
  18. الكود هو عبارة عن انك تختار مكان الكلمة في الرسالة هناك 3 اماكن بس الي هم :
  19. start : في بداية الرسالة
  20. includ : في اي مكان في رسالة
  21. end : في نهاية الرسالة
  22. ولو انت تعرف برمجة راح يكون واضحة طريقة اضافة كلمة عندك
Advertisement
Add Comment
Please, Sign In to add comment