mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
Refactor
This commit is contained in:
parent
626e65422f
commit
70ed8655a4
|
@ -32,13 +32,13 @@ export default class extends Module {
|
|||
this.tokenizer = new MeCab();
|
||||
this.tokenizer.command = config.mecab;
|
||||
|
||||
setInterval(this.say, 1000 * 60 * 60);
|
||||
setInterval(this.learn, 1000 * 60 * 60);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
@autobind
|
||||
private async say() {
|
||||
private async learn() {
|
||||
const tl = await this.ai.api('notes/local-timeline', {
|
||||
limit: 30
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue