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 @@ + + + + + diff --git a/src/components/Card.vue b/src/components/Card.vue index 2d5d902..0d97d56 100644 --- a/src/components/Card.vue +++ b/src/components/Card.vue @@ -1,5 +1,8 @@ + + diff --git a/src/pages/Index.vue b/src/pages/Index.vue index b452558..4de8f60 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -1,14 +1,19 @@