Update index.ts

This commit is contained in:
syuilo 2019-05-10 21:58:15 +09:00
parent 58ceee5465
commit 5ba3ec10e5
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -20,7 +20,7 @@ export default class extends Module {
@autobind @autobind
private async post() { private async post() {
const now = new Date(); const now = new Date();
if (now.getHours() !== 15) return; if (now.getHours() !== 22) return;
const date = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`; const date = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`;
const data = this.getData(); const data = this.getData();
if (data.lastPosted == date) return; if (data.lastPosted == date) return;