mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
oi =)
This commit is contained in:
parent
ce9799a17f
commit
05666488ee
1 changed files with 3 additions and 3 deletions
|
@ -37,11 +37,11 @@ class Checkjar extends BaseCommand {
|
||||||
|
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
||||||
const jar = "x3VtgmqMXYJ6k-vqdlhmGCejFH9Ej3Y";
|
const jar = client.config.monobankApi.jar;
|
||||||
const data = await fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, {
|
const data = await fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
"X-Token": "ugBCz115wxv4VPdtfIlkZtb1lvV2FglPrppAaphVpKwU",
|
"X-Token": client.config.monobankApi.token,
|
||||||
},
|
},
|
||||||
}).then(res => res.json());
|
}).then(res => res.json());
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class Checkjar extends BaseCommand {
|
||||||
name: "Monobank API",
|
name: "Monobank API",
|
||||||
iconURL: "https://api.monobank.ua/docs/logo.png",
|
iconURL: "https://api.monobank.ua/docs/logo.png",
|
||||||
})
|
})
|
||||||
.setDescription(`Текущий баланс: **${data[0].balance / Math.pow(10, 2)}** грн\nТребуется на след. месяц: **654,46** грн (по курсу евро на 24.01.2023, 16.30 €)`);
|
.setDescription(`Текущий баланс: **${data[0].balance / Math.pow(10, 2)}** грн\nТребуется на след. месяц: **654,46** грн (по курсу евро на 24.01.2023)`);
|
||||||
|
|
||||||
data.length = 10;
|
data.length = 10;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue