Parent Directory
|
Revision Log
|
Patch
revision 48 by rakin, Mon Jul 29 17:28:21 2024 UTC | revision 49 by rakin, Mon Jul 29 17:28:21 2024 UTC | |
---|---|---|
# | Line 26 const runTimeouts = async () => { | Line 26 const runTimeouts = async () => { |
26 | } | } |
27 | }; | }; |
28 | ||
29 | const setTimeoutv2 = async (file, time, ...params) => { | const setTimeoutv2 = async (file, time, guild_id, cmd, ...params) => { |
30 | await console.log('SETTING'); | await console.log('SETTING'); |
31 | await app.db.allAsync("INSERT INTO timeouts(created_at, filePath, time, params) VALUES(?, ?, ?, ?)", [new Date().toISOString(), path.resolve(__dirname, '../queues', file), new Date(Date.now() + time).toISOString(), JSON.stringify(params)]); | await app.db.allAsync("INSERT INTO timeouts(created_at, filePath, time, params, guild_id, cmd) VALUES(?, ?, ?, ?, ?, ?)", [new Date().toISOString(), path.resolve(__dirname, '../queues', file), new Date(Date.now() + time).toISOString(), JSON.stringify(params), guild_id, cmd]); |
32 | const row = await app.db.getAsync('SELECT * FROM timeouts ORDER BY id DESC LIMIT 0, 1'); | const row = await app.db.getAsync('SELECT * FROM timeouts ORDER BY id DESC LIMIT 0, 1'); |
33 | ||
34 | const timeout = await setTimeout(async () => { | const timeout = await setTimeout(async () => { |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |