mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
feat: rename .js files to .ts
This commit is contained in:
1 parent
40bf9d926b
commit
92b1992b1a
54 files changed
No files matched your search
@@ -0,0 +1,17 @@
|
||||
const path = require('node:path');
|
||||
const fs = require('node:fs');
|
||||
const cookies = require(path.resolve('./cookies.json'));
|
||||
|
||||
try {
|
||||
const cookieString = cookies
|
||||
.map(({ name, value }) => {
|
||||
return `${name}=${value}`;
|
||||
})
|
||||
.join('; ');
|
||||
|
||||
fs.writeFile(path.resolve('./cookies.txt'), cookieString, () => {
|
||||
return process.exit(0);
|
||||
});
|
||||
} catch (error) {
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user