- Strona w trakcie rewrite-u! Zapraszamy później. -
-Gractwo
-Gractwo
++ Strona w trakcie rewrite-u! Zapraszamy później. +
+Witajcie w Gractwie! @@ -37,6 +42,7 @@
Sprawdź jak się ma nasz bot discordowy - in progress!
+diff --git a/netlify/functions/bot-status.js b/netlify/functions/bot-status.js
index 005030c..4005f80 100644
--- a/netlify/functions/bot-status.js
+++ b/netlify/functions/bot-status.js
@@ -6,8 +6,23 @@ exports.handler = async function(event, context) {
Authorization: `Bot ${process.env.token}`,
},
});
+ let statusResponse = await axios.get(
+ `https://discord.com/api/v9/users/@me/connections`,
+ {
+ headers: {
+ Authorization: `Bot ${process.env.token}`,
+ },
+ }
+ );
+ console.log(statusResponse.data);
return {
statusCode: 200,
- body: JSON.stringify(response.data),
+ body: JSON.stringify({
+ info: response.data,
+ status: statusResponse.data,
+ }),
+ headers: {
+ 'Content-Type': 'application/json',
+ },
};
};
diff --git a/src/assets/cards/me.png b/src/assets/cards/me.png
new file mode 100644
index 0000000..6b67802
Binary files /dev/null and b/src/assets/cards/me.png differ
diff --git a/src/components/BotCard.vue b/src/components/BotCard.vue
new file mode 100644
index 0000000..73a93bb
--- /dev/null
+++ b/src/components/BotCard.vue
@@ -0,0 +1,63 @@
+
+
+ Bot Name:
+ {{ status.info.username + '#' + status.info.discriminator }} This is a card.
- Strona w trakcie rewrite-u! Zapraszamy później.
-
+ Strona w trakcie rewrite-u! Zapraszamy później.
+
Sprawdź jak się ma nasz bot discordowy - in progress!
bot card
+
+ Bot ID: {{ status.info.id }}
+ Bot Avatar:
+
+
+ Bot Status: {{ status.status }}
+ Bot Info: {{ status.info }}
+ {{ name }}
+ Gractwo
- Gractwo
+
Witajcie w Gractwie!
@@ -37,6 +42,7 @@
Spis Moderacji
@@ -44,7 +50,11 @@
Ludzie stojący za Gractwem - in progress!