mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
Update index.ts
This commit is contained in:
parent
58ceee5465
commit
5ba3ec10e5
|
@ -20,7 +20,7 @@ export default class extends Module {
|
|||
@autobind
|
||||
private async post() {
|
||||
const now = new Date();
|
||||
if (now.getHours() !== 15) return;
|
||||
if (now.getHours() !== 22) return;
|
||||
const date = `${now.getFullYear()}-${now.getMonth()}-${now.getDate()}`;
|
||||
const data = this.getData();
|
||||
if (data.lastPosted == date) return;
|
||||
|
|
Loading…
Reference in a new issue