mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
✌️
This commit is contained in:
parent
fc6d491bee
commit
bb3122d44a
|
@ -65,17 +65,14 @@ export default class KeywordModule implements IModule {
|
|||
let text: string;
|
||||
|
||||
if (exist) {
|
||||
text = serifs.keyword.remembered
|
||||
.replace('{reading}', kanaToHira(keyword[8]));
|
||||
text = serifs.keyword.remembered(kanaToHira(keyword[8]));
|
||||
} else {
|
||||
this.learnedKeywords.insertOne({
|
||||
keyword: keyword[0],
|
||||
learnedAt: Date.now()
|
||||
});
|
||||
|
||||
text = serifs.keyword.learned
|
||||
.replace('{word}', keyword[0])
|
||||
.replace('{reading}', kanaToHira(keyword[8]));
|
||||
text = serifs.keyword.learned(keyword[0], kanaToHira(keyword[8]));
|
||||
}
|
||||
|
||||
this.ai.post({
|
||||
|
|
|
@ -34,9 +34,9 @@ export default {
|
|||
},
|
||||
|
||||
keyword: {
|
||||
learned: '({word}..... {reading}..... 覚えました)',
|
||||
learned: (word, reading) => `(${word}..... ${reading}..... 覚えました)`,
|
||||
|
||||
remembered: '{reading}!'
|
||||
remembered: (word) => `${word}`
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue