DEV Community

Cover image for Shoe Discord Bot
Luca Argentieri
Luca Argentieri

Posted on • Edited on

Shoe Discord Bot

Hello, wonderful people of the internet and welcome to my first post in dev.to community.
I'm here today to present my shoe discord bot and all its features.

- First of all, why? 💡

Well, I had in mind to build a bot to stay updated on the prices and upcoming releases of the sneakers. The biggest problem was finding the right API, but we managed to find a guy who did a huge job, put together: StockX FlightClub, Goat, and Stadium Goods API, cool right?
With this mega API, we started studying discord.js and the project started.

Shoe Discord Bot 🤖👟

Cattura

Idea 💡

We had in mind to build a bot to stay updated on the prices and upcoming releases of the sneakers.
The biggest problem was finding the right API, but we managed to find a guy who did a huge job, put together: StockX FlightClub, Goat and Stadium Goods API, cool right?

With this mega api we started studying discord.js and the project started.

API 👟

Sneaks-API by @druv5319

A StockX API, FlightClub API, Goat API, and Stadium Goods API all in one.

Sneaks API is a sneaker API built using Node.JS, Express, and Got. The Sneaks API allows users to get essential sneaker content such as images, product links and even prices from resell sites while also collecting data and storing it within a database.
Read more...

Setup 📦

First create an application from here

  • Go in Bot and create a new bot
  • Go in 0Auth2/General
  • Select in AUTHORIZATION METHOD In-App Authorization
  • Tick bot in SCOPES
  • Tick administrator in BOT PERMISSIONS
  • Copy CLIENT ID

Now move in Bot tab and tick

  • Presence Intent
  • Server Members Intent
  • Message Content Intent

Bot message content intent

Invite the bot in your discord server with this link template: https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&scope=bot

Clone the repo

git clone https://github.com/LucaArgentieri/Shoe-Discord-Bot.git
Enter fullscreen mode Exit fullscreen mode

Run

npm i
Enter fullscreen mode Exit fullscreen mode

Create a .env file and put bot token (you can copy it from dev portal -> bot -> token)

BOT_TOKEN_KEY=DISCORD_BOT_TOKEN_HERE
Enter fullscreen mode Exit fullscreen mode

Run

npm run start
Enter fullscreen mode Exit fullscreen mode

Use commands in chat! 🎉

You can use heroku or others for host your bot and have fun

Commands 🤖

Some names are temporary

$help
For information on generic resell prices or based on the desired number.

$retail Yeezy(example)
To get information about a shoe at retail.

$nextDrop
To stay updated on upcoming releases.

$todayDrop
To stay updated on the releases of the day.

$monthDrop
To stay updated on the releases of the current month.

$infoShoesNumber Yeezy 11(example)
To get information about a shoe with number.

$mostPopular
To see the most popular scapre in the last three months.


Thanks to all Contributors 👩‍💻👨‍💻

If you like star ⭐️ and share!

This is a personal project that I use to learn, everyone is free to use it and can contribute to the code.

I let you the link to my repo and thank you for reading, see you in the next post.

Bye!

Top comments (0)