Remove /weebify from text
This commit is contained in:
parent
dcf2ed7fd3
commit
f289a8b377
|
@ -398,7 +398,7 @@ function weebify() {
|
||||||
"y" => "丫",
|
"y" => "丫",
|
||||||
"z" => "乙"
|
"z" => "乙"
|
||||||
);
|
);
|
||||||
$chars = str_split($decoded->{"message"}->{"text"});
|
$chars = str_split(preg_replace('/^\/[^ ]+ /', '', $decoded->{"message"}->{"text"}));
|
||||||
$text = "";
|
$text = "";
|
||||||
foreach($chars as $char){
|
foreach($chars as $char){
|
||||||
if(key_exists($char, $letters)) {
|
if(key_exists($char, $letters)) {
|
||||||
|
|
Loading…
Reference in New Issue