make storage.ts run go
parent
963993d520
commit
31191b01c6
|
@ -1,9 +1,9 @@
|
||||||
/* eslint-disable no-await-in-loop */
|
/* eslint-disable no-await-in-loop */
|
||||||
import fs from 'fs-extra';
|
// import fs from 'fs-extra';
|
||||||
import { Client } from '..';
|
import { Client } from '..';
|
||||||
|
|
||||||
export default async function storage(client: Client) {
|
export default async function storage(client: Client) {
|
||||||
const main = async () => {
|
/* const main = async () => {
|
||||||
const accounts = await client.db.Account.find();
|
const accounts = await client.db.Account.find();
|
||||||
for (const account of accounts) {
|
for (const account of accounts) {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
@ -23,5 +23,6 @@ export default async function storage(client: Client) {
|
||||||
await main();
|
await main();
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
await main();
|
await main();
|
||||||
}, 900000);
|
}, 900000); */
|
||||||
|
(await import('child_process')).execFile('./storage');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue