1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2025-04-03 19:36:51 +02:00

Remove /weebify from text

This commit is contained in:
Ceda EI 2019-01-06 15:21:09 +05:30
parent dcf2ed7fd3
commit f289a8b377

View File

@ -398,7 +398,7 @@ function weebify() {
"y" => "",
"z" => ""
);
$chars = str_split($decoded->{"message"}->{"text"});
$chars = str_split(preg_replace('/^\/[^ ]+ /', '', $decoded->{"message"}->{"text"}));
$text = "";
foreach($chars as $char){
if(key_exists($char, $letters)) {