Update index.ts

This commit is contained in:
syuilo 2019-05-10 13:59:33 +09:00
parent fea34f066c
commit 4c378ebf7a
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

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