Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- some examples of how to use this :3
- ws[1] = "هلو" -- msg
- rs[1] = "هلوات حبي 😍" -- reply
- ws[2] = "احبك" -- msg
- rs[2] = "امـوت بيـك/ج يروحي 😍🙊 " -- reply
- ws[3] = "بوسني" -- msg
- rs[3] = "محـحـحــحـح ع الشفـه لسق 😍🙊" -- reply
- ws[4] = "هكتور" -- msg
- rs[4] = "يـ نبضـات هكـتور 😍" -- reply
- ws[5] = "منو ضافني" -- msg
- rs[5] = "عزرائـيل 🌝 " -- reply
- ws[6] = "😂" -- msg
- rs[6] = "؟✟دٍّﯛٍْﯚٍْﯛٍْﯚٍْ۾ٍْ﴿✢🌹✢﴾ﻳـُِـٍّﮯٍّﺂِْڕٍّپّ✟"
- ws[7] = "اريد كروب" -- msg
- rs[7] = "انتضـر المطور @x_s7s_x هسه يجي 😊❤️" -- reply
- ws[8] = "تحبني" -- msg
- rs[8] = "عاشقك/ج بجنون 😌💋" -- reply
- ws[9] = "تف" -- msg
- rs[9] = "تعكس اخلاقك/ج 😌🍂" -- reply
- ws[10] = "وين المطور" -- msg
- rs[10] = "عنده شغل هسه يجي 😒 شكد تلح" -- reply
- ws[11] = "محضور" -- msg
- rs[11] = "كسرت قلبي 😂" -- reply
- ws[12] = "بوت فاشل" -- msg
- rs[12] = "☺️🍂 نفس خلقتك/ج يعمري" -- reply
- ws[13] = "كروب فاشل" -- msg
- rs[13] = "اخذ نعالك واشطح 😒" -- reply
- ws[14] = "@x_s7s_x" -- msg
- rs[14] = "المطور مالتي فديته هو صنعني 😍🌝" -- reply
- ws[15] = "منو اني" -- msg
- rs[15] = "انـت روحـي 😍🙈" --reply
- ws[15] = "هه" -- msg
- rs[15] = "صار ثكيل 😂 ع اساس هو فد شخصيه طط 🌝🍂" -- reply
- ws[16] = "محظور" -- msg
- rs[16] = " كسرت قلبي 😂🍂" --- reply
- ws[17] = "محضوره" -- msg
- rs[17] = "انطيني حلق وافكلج الحضر 😂💋" -- reply
- ws[18] = "محظوره" -- msg
- rs[18] = "انطيني حلق وافكلج الحظر 😂💋" -- reply
- ws[19] = "انجب" -- msg
- rs[19] = "؏ـﻳـ﴿😱﴾ـٻ. يامحترم/ـة 😒" -- reply
- ws[20] = "اكلك" -- msg
- rs[20] = "كول/ـي حہۣۙ﴿❥﴾ﻴـااٌِتيْـﮱ 😊❤️" -- reply
- ws[21] = "انجب لك" -- msg
- rs[21] = "😂😂 اوي قاسي/ـيـة"
- -- the main function
- function run( msg, matches )
- -- just a local variables that i used in my algorithm
- local i = 0; local w = false
- -- the main part that get the message that the user send and check if it equals to one of the words in the ws table :)
- -- this section loops through all the words table and assign { k } to the word index and { v } to the word itself
- for k,v in pairs(ws) do
- -- change the message text to uppercase and the { v } value that toke form the { ws } table and than compare it in a specific pattern
- if ( string.find(string.upper(msg.text), "^" .. string.upper(v) .. "$") ) then
- -- assign the { i } to the index of the reply and the { w } to true ( we will use it later )
- i = k; w = true;
- end
- end
- -- check if { w } is not false and { i } not equals to 0
- if ( (w ~= false) and (i ~= 0) ) then
- -- get the receiver :3
- R = get_receiver(msg)
- -- send him the proper message from the index that { i } assigned to
- send_large_msg ( R , rs[i] );
- end
- -- don't edit this section
- if ( msg.text == "about" ) then
- if ( msg.from.username == "Mouamle" ) then
- R = get_receiver(msg)
- send_large_msg ( R , "Made by @Mouamle" );
- end
- end
- end
- return {
- patterns = {
- "(.*)"
- },
- run = run
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement