Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Oct 18, 2023
1 parent 79acdfb commit eb8c31c
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 166 deletions.
118 changes: 1 addition & 117 deletions data/cookies/100071743848974.bin
Original file line number Diff line number Diff line change
@@ -1,117 +1 @@
[{
"key": "datr",
"value": "WEctZV3GmYP1aokVHgIwslCt",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "sb",
"value": "WEctZQQn41D015wkNWnru0ri",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "m_pixel_ratio",
"value": "1.75",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "locale",
"value": "en_US",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "wd",
"value": "412x778",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "fr",
"value": "0jU7vZkKbfCYXQuyl.AWV1hXff3hXjnujCtwI2axoD384.BlLUdY.z1.AAA.0.0.BlLUeI.AWXpWQkK-zU",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "c_user",
"value": "100071743848974",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "xs",
"value": "13%3AjiScmtysBtUB0Q%3A2%3A1697466251%3A-1%3A3222",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "fbl_st",
"value": "100427183%3BT%3A28291104",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "wl_cbv",
"value": "v2%3Bclient_version%3A2335%3Btimestamp%3A1697466253",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "fbl_cs",
"value": "AhCzI5fbuuN45d24U6POLnr1GHpRYVdEU3FoUzVYUDc2Ry9aN2lZaENVRA",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "fbl_ci",
"value": "610632187497667",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
},
{
"key": "vpd",
"value": "v1%3B778x412x1.75",
"path": "/",
"hostOnly": false,
"domain": "facebook.com",
"creation": "2023-10-16T22:24:19+08:00",
"lastAccessed": "2023-10-16T22:24:19+08:00"
}]
0e573e4aa36dd06525d449221044d1152a319358d77c5392be39facd66e3802c68a5b579f742b53610d1ab5ebf7c22c6b3d25a3bdc97e659f6ddbbe14d822dad200f71997b609f7be688bd92a95ef295655cf98b70e0a9ca9bfa97034a7deeb28ddca2c747bab46094aaac9ee277da5a3d8086cf1980100828a3d2707802474d3bbdc2ec78ac30701b0c1290cf18e1902db618a67c61da725fd07ae6f31f7f94ce46bde53b6413b5f9576f1322d7baaed088bebfd6786a0f8565cc7bdc061cf282d37582392d88792f08f0cc3d1ed547aeb861d57a1ed4912c6b222faf41bbfeae31b2daf907d9ea3485a5f0f7389a63714c2fdd3930586dcd693db19010cf08cf5c94d8a90fe5194f2f892f503d3453ae7430446c2e5d28eb7d3a59b65cacd49ec7d3d13729aed11cc007c4c6f884b158540c52ec6c354e3642b8a18051f896304b074fe7faa7bb72f6800d732dee787d0e5d6c42df63817340bc57bfdc3a293a02ea1b0c9056e1d704db0a38b81f15c37184f79d495c0b4eab6d69107385851a3ac7cec9264405a3202382dd93a177589fa5151c28b12c032755af96796e10f5ef53ad633a2241c513a7ec6798a56c15fb9400fe85dd3e3da41e130b28006ce853fcf4a481a04081b941369a10683a1729e0e72a2dbdcd788dccb00e3fb5e5b91dc15f4e0a57186c10090feabcd4b63beea0012f00ea8d725ead5b27bf396289f41daedcbeff3e8a64c330bc415689e0e6a7ce1c9615edc300124063d1b68f020384de68babb6612d6c3e018a7cfca16eeed4efccf71837b6b88b8fe32c9dc9aa9ec5b0cde6bd7cab1646e0b27059f7b5b149d02d1897a29e8723b31ce8881b5119b83cc2e7aad8564456d72a392744c109c385558a2b2ab4e1dc0de116d7629501a166215cbf16345ba494f2f0f7f61cf374df4b9514b80c5133de6d1e91a5957df7de807cdeefe6dc69bea905289d88112ddf6333468d3f73b17dfb67f0551099097d25ca98f0a28044e31359ce1653021feb19707d476b9616b6ed39b6900b44458dcba5de0d25caf02b2fce1f0ad8a94db226ec7d0f10a9596cf2e2973682b043775296b994508c5ffc63650d15cd94755eb0c4a86d46cadaf40603e680ce27ea30e2dcd38a60ab238a367c34596d88d8bcaf48a78b71e521fb03e22dad98e77294692e6ef7bf92e34ce890d0bb7e7ebb49aaa81c2c3ee7de0156657a2e31d43eece7276b94df1e005b799b983223a2b5618a421dd6e5806d92606b1a326a52ca7bda98b25f3f2718f9e3ac394592075108faf7578935036013c04ac59fddf401bd049919ffc4f9deb840675d4d20c8b7e85e0f5a8a4c18fcc46ab4d3af3d1410b71812b0c6d9052272c6c4b62079802e727442a708162de1d3b85c7375651d9425c4fcbf4765b7ad00bac32deafd0cb7f695c6de3bfbfb1416875ffaefcde58bf9991fb9c00848b178fb7e1c46decf5c7f544d391bc73b94137c21ae268889321b305665441f02fc74ebf6d6d29bfec052e063867023537af920d8d8170740af24a7fb2fc536f75e2a080f9e917d33ca6ce37ea9d6c3b1fe41334e83777c0e617430914c9aeb4116bc0e45903cdc0e5668e68455484304129c4e2cfcaf5a92f36947f451745625de503af28f5cedf0f60ecdaef620bbd9c7112afd8b239d02a66540fe80cbbaf99e8932be0efd4804d8159d6ddeaaf9a1365133d3b556ab2603d29c74c0721073ea56018b13ef27101db68270fceda11c04d57e4bef42e6425e431bc5810ed65923027cb44fe6a2e86d08c6abcc578c48189ac308e81a56e20c23578cd540ce574d018f205f9f5ae1b5f37cbe4034ff82df8c78872d2ff1cd054ddb3653529653b334794d278d35cc19ec29fe1c41a620e165f6c4a754c332b59229355bd5ff8307bd70aa777ca9d93be8dddbec1e3a83f69dec25e539ded4ecd4ac8f61c9b6ef45ca720d5bc8cb7dc7ef3c952d194c6d2d9eab636132e02f332c136d320200b5567906bcf5abdf2ae229fdb7c2ed251fb4fa804784a417cf73f04ef740ac019a9ee8a7cc47f217b39ca40065e78b961114f0b5f7607d800ec47441d1416c2c0d7321bcd8e91bc4f389af8d2fd30d579a0c43751ce466d9dfc505475c51bc0cabdb1632ba497fafa0326206ebdc01954731256b9f392352caedb097211db742e7012f53a80c022b1084634706653eb6475edb9b2b75083eb5e6930b29f1e9d63f6c1b48f026dd9d99941ecd774e5ba5fc23baa11347a2f3237e564848b04144933f9b77daa9cdfa1bd7fa8813518903aac4beec5868f3731de7c60fae2a5f95c51d806812bf4a0d8221271e94631679236461490f084224b2f3527e6e05c54b15fc168497aa56d2d55775d92c966fab46ebfa30921ea91ffa7d8e336a0f8829f3b8bc6cb0ae46b2275b2d7b23897933ac65afae497339601dbda2c0ab43d0d8e02b99aedce1f61e8c9d11055266d9eb92759ff676e1f6596196c49dc7aec3c27333e6c6b04b1d82deb246aaada35e72668d78fc021383365c9142a5e29e83e3f6e6d0a976729aa7fcc8a420deed78e193f4ffdb222ac82f5d9bc7fe390589bb6d126edd69007fb870d25797d893d1b048a8256f983545685d77ca49e130a00920c393e84c7ad48e930fa565b72641a532b43159d74c5c8c104ba292732dda6b47357c6f02240da04e6cb7556d49276e1478684406b04e851ef44683be2a77913c0d7ca1e8c943979b259fb20b2888b3da1a3fefeead82eebe0d6bebe74e09ca5f8424116be96cde8aee18b7637a63e75b7ccfcc0d70f4fdc1b733ff774fa085ad8233868167296067be027b4561423f4a61381f5aa23c53d47a2b04b93c0b941ae604085aea339161232ef5e80ecf7a94e966d0abe2321be8fe98934f31b5cfd82df11cf05b3db722b139a0da7964650c79305f1345ab6e333df473152e16ea2bdffd01dde6cc677e4495e5fea2c3ca3537e22b6a61700ed6df0e12b6ba2756a8eea6b8828f374d26a27c84ad3e469e93170d01a686dfbae97342e30432ee319495af08a644e461d128fc1e760c4476d9a516783fd6e6f81ff527f4d8433ac36aae3daa8539e3755f8bb1b14820f036d7c9005080097f17c17d5ee8613e66bf6b53965f95835f40aa5602b56e697a00a8f59260521f6644e4b46d04006a2778551268ea1eca82de2dc5fbc34ac2830caa465b119e42af67f28789afc3de266cb1ee24ebceca679ab4d84582fea6c202394120914df4d5df97c682ffd5b8448a00a9fa82fe9984e522c4e74027d83cc108259327174d1c4bae16a2193588973d171aafb736ff32d896a7943a73177218bf74975502c4d7a70b4a1b80cfea69d14e3e8939b82fa21e05d53698f77337a167bce6ce5e2c6100ac4a15f0bb75f86d8d16660c99c32e3c00cacc48129f9bd7762fc360db780b481b67298c408f337771d89c8477feb1ca2724df0be8c16a0fa361bcd64d134e0bb7e95c802b155312c708142aa6f73b2803cf1252a2a1c3acd871c856c2cefbe039dc6d79af076af837f0e00ba3896e5bd7fc64e83895b064832157d966417165f487f853fde32faa7726ec3859c9d753563c013841dbc65701785fea214ca7dc61075e2ea8d0950565b5ff97cd8272e25d9fccbc5fb0061820ec46794573deee0ad6014360fe3825755a68b2b8a18e8f818337bb41003aeaf27c58fffadecc046f4760a72ba92e4c3e5c54feb1f960a445c4570b6f324298c16318c93d631877a20da05d914ae7e087a7fe3d1b8b4218178d4d7b7bc33d9455ecfe49aa52f36b96baadd505da34b32f479f2c3f41ac613158faec97ff5d4fd9c6fedc0d752ef43414e18bbe5000bcfbd4a309a975758d025c96825cde58b9a218e0d3afd37d07e9a89603d15d42f2d621a0e27aa20e812ea0dc995fbe33319dcc3c6e42a13f0503debe2c16d7aa235578e32fb13c24f281850301bfb2227920a951be76a7d527c98c36f65581cd707f0fd7b636acc6a91dd6391194c222c7d85391e24494ffc6a86a5e69a5ccd45663fa96710250c241c645787eb68077e01abda86d6fd2182fbf3e040267dc987775952bfbe90f68d43821330bafda0bd9072ed114a5100f35ccc0089abca03a64ee56b9f006c692ca86cc7c06c3e28424000823571d7b5e44a26fa2349353d7ec40dce364c40fd4b9617d1a5bf9e1755818e8ff4e009012cda415129b1f5881888c6513142e67b22211589ac8401e5ddc1e057c2d395f7613dbed3b927648d17b09493520b8e3325ed27e363e0341d7c698befa1e9dbc28ff43476f729a753d839b14fab26baa2debd9257da99809f9835b9db8d9623265dd88ff3a5abfd7db787e6edab2093708fddee2f4b7a68b0976a26be9810fbf6eaae9cdc4d192bfefa8885731f1afb98d16b0593a007b14c46a02d524ba16fbea23c3dd830a84165509974523e786ad98a1ed726fe30e15066737afca26b83bd13096051634a86fd7322ef3c5b48e24ca14904e4fb0f60248b81a5f798bef3183fecf0c513b5ebf848e049497ba0bd3661b7e5907694b7484f149f2fa222ebed17098997d95f312d2bf1b782a0d0ad0a42bedf344127d1369becc74a3d04214e89f93dc320a15beb0eb702175e33de8e5a7aacdd5c63779cf48faf604f70e248e28d0367ea794c5294c73a336d6c4df79932fdfd18f1795ac69616af517321d905a3975c0a3bccebe00206d1397b740c35e17669546105526fa2f3390196da161eeb36ddd12ac77ce3d20979f781623e7cd86d75396e7f2a5f8531d75d0cf4e919004850be287333072abe8f4aa7ff8551beb9e1b41c66c6b2e773921d632e705390111d6f5aaf1f86c8ea5b67266f540e61397fd03f726f2ca587c9286f186c6dbb96f453bd511b87d5c6b51b72635c0f22790383d15594e03606f54303e72401558231613857b11e6119fc7e60491e911c7eb308a81b69e0b75b3c5b6a4de231271b5cd9d8a55f3fbdf335d7097f111366458973666a3ebcbb61ae833611079f1a509495a3ec901600ca560d318d66f81753a8184146caea40f79788059a028b779acbe683e7feadc2983fd9a111766cc13fe4f0298b45b71f5b9c1a7c73d90182595710c28002a3611c75671e0f04c10fae33993d531eb2d9c29b3249e34d6f5b9c190665808fb179514198a577fb2694cb7e441fb2f629bf00ff69e5c6c46552c7c1d6cba5e0a65e129538480902edf18ebbad7d61e33e0d23443aeff3efbde4cd75178c78eef6d169610af0b60ecf9c0f8caf5ec1c5b631c52e6a03d019de7e06984630de70e78ad33d768a2475f3520d37291ab95536ffaa8bcca74ca87e5b80adf45d355a3c5fac5cbf9f7cd4e8c6afbccc6788ea9a290538c69f0e790ea281363027994d600c08cc9a72a1992b2185143e84efada2c2599a87c75f88a80c6bd9fe7d0a70b1a9e6b10d400d1efef364d2cee5c899a859c9fbe390de2530be9d8d48758795e2c2fed624d75c469e052976ef0b112a915d5ed3bb1bf3c92c934caedb2966bac61accf4d0a67ce456076708ca807ee28555937f19bb9dd20782090d6b3f591017acb266d0e58f9b72094e32e211a687c0006d05dde9bf755c2f3510672f4d7660a761a0ac98de3beea865da6ea06ea362f549c22eb05850707a2d941e71c63ff3ffd4de1f5281b8c5a2f455120458feb460a9eccfd1e748a656a5a2210c71b27d5db17a4054c2ec74389511bcaf425db2128a4d05454c432f9fe01361068c486885e89498b329dec1880540ebed1ee2c32c1b7ddb8bae0ce548ee45060b92fc2579e3ccd4c25bb4d9e245c42a3dba32a07ecf616ad7569fe2eeb2a279ea135a2969581312748d5533520959d1c5c905e9ec1f6befbf66021289113db3611826603f7af7be0a55344e098a200a6af7938f2ffc13e7ead38e0bddb9945e6b62673f067a79e9ca6bd0557ce11e92ae224d0691a8c71a6c6ecc03f69da40cbf7ae5307dc7d173fccf7da7799ff18444d7f59921fd72fa257bea0f4aa9cd33b490615c6e53f5f5fa21ddbaeb1c042724d39341efcbfdd29adac92506eafa06cdb88860e05cabf5261d97c38c81c70850b99aa992bc533e19505e4734799e4eaf6aa24d4980e87914b5a2214e8eb0d3f7455c3b14f33b9921a4c90f7ad44f5af83b837533835f465813e9acce4e47061daf31f1813675b3d9f3fd34bec773e996c6053501718bb4084cd45478854c2b955948b0833bfdd8da9466b98f2d8a06b220f66e09d0d42f0c0ae2b4c71d57a16ec3d9915a2104845119560556cf361b5b0c4e5887eaf43c5fc65540e9b983ab3d819a580269e5985599efd5bfdaa7cf49f76da6083a89492172cad3f6da514d461d8f6c8bd35a1e49ba86026e00b6b6eaaad371545234eb503aa9cae77e99152ff5c32dbd31c802a76261b64aa16df363e46814f68aa1966e7b70a9a7d923b0e420bc3cb9167fffacd769734e231907009d3241ce8d17db205c92f16f54ee1d2630158724e45287e6e6ef61a56426ad22212be106a6f8c977d7c4d874ea5eb5175ed1fdf385c2cdd3f2b464563e3a72f9d3d0ab2bd161099a300084c8833bdac650752e03fe8ba501bca152121c26c695e7741db34e637e6a1014f9e883fdee03328690364878a78d2d51ad3c2778d5ee9d7e512575f93910ba7ffd7e45fa2da80056d0268001aaf32946248817e864e4f3132caeb32e224e08052b67a68e0b3d848786aabbab40d8f07cd281f934149eb99a96cdf6ec363f2f23e32102ff02c9946cdc306d7cb19f9a8bd9b738519963b202eaa0fc5d9ff48e2733583acf91962605cbd86ae88c9674bd77754e6fbbb0d4bd227a83b84f37789d98fb62c60ef02e87f41819d8a5bdeeaceadb332b2e4d66913bb4c387314b5bfcd0af0acbdbab35600f962e9e24935534b25430f4646abc0d6528275174e2dbf5839adb14e43156072a3f8d63260e72a6fdddb28ea9a92858067c4cad5fdd57f6e3c47a841b52f7f9491d49c406a437b528d8416cddf5537d632c73ed25fb03d58004b95aba14cd1a7e7483ad80d2c0463b4bb15f52ae31ce576d3f54e0a6101f625535cb39eac48ba29be8c6b1a91e817e5911de00c2cb97ddd7ae27cd333c8a98305548a343d7134f95269b44b8b144213669faf0a8d0329fa189e77c2ffb26813ea07e9d2d947b85ae909606b6cdee73784210dea6ad223a0d6386921572e465f1b9c2c911c5c02b08ce5665e296c1fd3525141dd20ecd3312a1abd25647a079f5de64891c4eca36ec2401785687f9de6546f644e2f2c739e484ca845c5eba83ba8a3ed6e8eaaf389b82cb6b81645b675a327f34b8a79ada8c9b9610abb4ff659d368e8f3763beeb2a7abf1c084b8abeb6674c43ed3324e8440e277bbc76ce4ad795c57cdad417f3f28e3d6ede8bf780604ec044bb465d3846643dcf05c9e3e1310fa2996bd0131d9ccfece883752655e6f4e5b6bea5c01b72f8b508e529563e8cda4eef0843cbd2b8d6b1a555555fe98bf5988f12ca8d5fc848bbc4e6f30aefa0db80d9957b73738954a129682a214e00a1c61f3e9e506fce0a8112270fe0af104d8804650bd6c96064343783443742d4aec450a26f32239ebb6b21dc4446e7a00ab055f1fd76757065ae838493424d115d4d09801b93f2b7f7b29bda1c25b2f0264ff9ee98450a9548b79480c15c
1 change: 1 addition & 0 deletions data/cookies/100071743848974.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["cca3d3bff730202b486d9fd00ce63585d91f0e4ee850b04c40c105c03f02d81a","b61cf44216fed809cb77bfb96d44c64b"]
2 changes: 1 addition & 1 deletion data/groups.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/shared_pref.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"probability_mass": "1",
"prefix": "ip",
"timezone": "Asia/Singapore",
"isDebugEnabled": false,
"isDebugEnabled": true,
"isEnabled": false,
"autoMarkRead": false,
"online": true,
"selfListen": true,
"sendTypingIndicator": false,
"autoMarkDelivery": false,
"error": 0,
"error": 3252001,
"angry": false
},
"apikey": {
Expand Down
2 changes: 1 addition & 1 deletion data/users.json

Large diffs are not rendered by default.

51 changes: 39 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,17 @@ function redfox_fb(fca_state, login, cb) {
sendMessage(api, event, "Hello, i am up and running. How can i help you " + aa + "?");
});
}
} else if (query == "unblockgroup") {
} else if (query == "unblockthread") {
if (users.admin.includes(event.senderID)) {
if (event.isGroup) {
unblockGroup(api, event, event.threadID);
unblockGroup(api, event, event.threadID);
}
} else if (query.startsWith("unblockthread")) {
if (users.admin.includes(event.senderID)) {
let data = input.split(" ");
if (data.length < 2) {
sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: unblockthread uid" + "\n " + example[Math.floor(Math.random() * example.length)] + " unblockthread 5000050005");
} else {
sendMessage(api, event, "Unfortunately this is a personal chat and not a group chat.");
unblockGroup(api, event, data);
}
}
} else if (query == "unmute") {
Expand Down Expand Up @@ -4666,12 +4671,17 @@ async function ai(api, event) {
blockUser(api, event, id);
}
}
} else if (query.startsWith("blockgroup")) {
} else if (query == "blockthread") {
if (users.admin.includes(event.senderID)) {
if (event.isGroup) {
blockGroup(api, event, event.threadID);
blockGroup(api, event, event.threadID);
}
} else if (query.startsWith("blockthread")) {
if (users.admin.includes(event.senderID)) {
let data = input.split(" ");
if (data.length < 2) {
sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: blockthread uid" + "\n " + example[Math.floor(Math.random() * example.length)] + " blockthread 5000050005");
} else {
sendMessage(api, event, "Unfortunately this is a personal chat and not a group chat.");
blockGroup(api, event, data);
}
}
} else if (query.startsWith("smartreplyon")) {
Expand Down Expand Up @@ -6068,7 +6078,12 @@ async function ai(api, event) {
sendMessage(api, event, "Hello World");
} else if (query == "test") {
if (crashes > 0) {
sendMessage(api, event, crashes + " unhandled exception detected. if you believe there was something wrong please report at https://github.com/prj-orion/issues.");
sendMessage(
api,
event,
crashes +
" unhandled exception detected. if you believe there was something wrong please report at https://github.com/prj-orion/issues using this format:\n\n What did you do:\nWhat result are you expecting:\nWhat result did you get:\nWhen did this happened:\nWhere did this happened:"
);
} else {
sendMessage(api, event, "It seems like everything is normal.");
}
Expand Down Expand Up @@ -8369,7 +8384,7 @@ function updateFont(message, id) {
if (!(message.url === undefined)) {
let url = message.url;
if (url.includes("facebook.com")) {
message["url"] = "";
message["url"] = "https://mrepol742.github.io/search?query=" + url;
}
}
}
Expand All @@ -8380,13 +8395,15 @@ function updateFont(message, id) {
if (message == " " || message == "" || message == "@everyone") {
return message;
}
return toMathSans(message);
let mathS = toMathSans(message);
return formatCodeBlock(mathS);
}
let body = message.body;
if (body == " " || body == "" || body === undefined || body == "@everyone") {
return message;
}
message.body = toMathSans(body);
let mathS1 = toMathSans(body);
message.body = formatCodeBlock(mathS1);
if (!(message.mentions === undefined)) {
let mentionS = message.mentions.length;
if (mentionS > 0) {
Expand Down Expand Up @@ -9297,3 +9314,13 @@ async function caughtException(err) {
crashes++;
utils.logged(err);
}

function formatCodeBlock(str) {
const regex = /```(.*?)```/gs;
const matches = [...str.matchAll(regex)];
const code = matches.map((match) => match[1]);
for (co in code) {
str.replace(code[co], code[co].normalize("NFKC"));
}
return str;
}
Loading

0 comments on commit eb8c31c

Please sign in to comment.