fix history
This commit is contained in:
36
history/29-01-2026.json
Normal file
36
history/29-01-2026.json
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"interaction": {
|
||||||
|
"type": 2,
|
||||||
|
"id": "1466473802148872486",
|
||||||
|
"applicationId": "887789346277691402",
|
||||||
|
"channelId": "470712099753164811",
|
||||||
|
"guildId": "343827205878710273",
|
||||||
|
"user": "264739894641950720",
|
||||||
|
"member": "264739894641950720",
|
||||||
|
"version": 1,
|
||||||
|
"appPermissions": "2230881414020816",
|
||||||
|
"memberPermissions": "2230883322429171",
|
||||||
|
"locale": "pl",
|
||||||
|
"guildLocale": "en-US",
|
||||||
|
"entitlements": [],
|
||||||
|
"authorizingIntegrationOwners": {
|
||||||
|
"0": "343827205878710273"
|
||||||
|
},
|
||||||
|
"context": 0,
|
||||||
|
"attachmentSizeLimit": 10485760,
|
||||||
|
"commandId": "1452614990078021710",
|
||||||
|
"commandName": "play",
|
||||||
|
"commandType": 1,
|
||||||
|
"commandGuildId": null,
|
||||||
|
"deferred": true,
|
||||||
|
"replied": true,
|
||||||
|
"ephemeral": false,
|
||||||
|
"webhook": {
|
||||||
|
"id": "887789346277691402"
|
||||||
|
},
|
||||||
|
"options": {}
|
||||||
|
},
|
||||||
|
"url": "https://soundcloud.com/musicbymoonlght/4th-of-july-rock-x-house-mix-by-moonlght-vol-2?si=93777764ee5c404db6f3fb3c6dc347d8&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -27,5 +27,7 @@ export async function add_to_history(history: HistoryObject) {
|
|||||||
|
|
||||||
data.push(history)
|
data.push(history)
|
||||||
|
|
||||||
fs.writeFileSync(file_path, JSON.stringify(data, null, 2));
|
fs.writeFileSync(file_path, JSON.stringify(data, (key, value) => {
|
||||||
|
return typeof value === "bigint" ? value.toString() : value
|
||||||
|
}, 2));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user