diff --git a/src/Commands/GenericmessageCommand.php b/src/Commands/GenericmessageCommand.php index a4fd666..d4870c5 100644 --- a/src/Commands/GenericmessageCommand.php +++ b/src/Commands/GenericmessageCommand.php @@ -29,6 +29,7 @@ class GenericmessageCommand extends SystemCommand '丸吞' => 'vore', '哦不' => 'oh no', '哦哇塞' => 'o wa sai', + '哇塞' => 'wa sai', '色色' => 'hentai', ]; private const EN_TO_ZH = [ @@ -44,7 +45,8 @@ class GenericmessageCommand extends SystemCommand 'money power' => '钞能力', 'oh no' => '哦不', 'touch fish' => '摸鱼', - 'o wa sai' => '哦哇塞' + 'o wa sai' => '哦哇塞', + 'wa sai' => '哇塞' ]; public function execute(): ServerResponse @@ -77,7 +79,7 @@ class GenericmessageCommand extends SystemCommand } foreach ($glossary as $search => $replace) { - $text = str_replace($search, $replace, $text); + $text = str_ireplace($search, $replace, $text); } $this->translator = new Translator($deepl_api_key);