This commit is contained in:
syuilo 2019-02-02 00:07:11 +09:00
parent 626e65422f
commit 70ed8655a4
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -32,13 +32,13 @@ export default class extends Module {
this.tokenizer = new MeCab(); this.tokenizer = new MeCab();
this.tokenizer.command = config.mecab; this.tokenizer.command = config.mecab;
setInterval(this.say, 1000 * 60 * 60); setInterval(this.learn, 1000 * 60 * 60);
return {}; return {};
} }
@autobind @autobind
private async say() { private async learn() {
const tl = await this.ai.api('notes/local-timeline', { const tl = await this.ai.api('notes/local-timeline', {
limit: 30 limit: 30
}); });