Update dictionary

This commit is contained in:
2024-02-18 00:53:38 +00:00
parent 468776859e
commit e262119e54

View File

@@ -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);