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