mirror of
https://gitlab.com/ceda_ei/Quadnite-Bot
synced 2025-04-04 11:56:51 +02:00
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…
x
Reference in New Issue
Block a user