A simple and performant Discord bot that allows you to search for sneakers, fashion and collectibles items directly from Discord. This bot is built for Deno Deploy and based on SneakersAPI.dev for the search.
A free hosted version of the bot is available, you can invite it on your server using the following link:
Example of a search for /sneakersapi SB Dunk Verdy
:
Before running your own version, be sure to have a Discord application created with:
- Discord Bot Token
- Discord Client ID or Application ID
- Discord Public Key
This discord bot is built for Deno Deploy, you can deploy your own version using the following command:
# Clone the repository
git clone https://github.com/vlourme/sneakers-discord-bot && cd sneakers-discord-bot
# Fill the .env file with your Discord credentials
cp .env.example .env
# Register the command on Discord
./register.sh
Then you should login on Deno Deploy and add this repository (forked) as a new project or eventually just copy the main.ts
in the playground.
Important:
- Don't forget to set
DISCORD_PUBLIC_KEY
environment variable on Deno Deploy, only this one is required. - Once the bot is deployed, set the deployed URL as Interaction Endpoint URL in your Discord application.
To invite the bot, you should go on Discord Developer Portal, select your application and then go on OAuth2, enable the applications.commands
scope under bot permissions and you should be able to invite the bot on your server.
If you want to change the command name, you should update the name
field in the register.sh
file.
This project is licensed under the MIT License. See the LICENSE file for details.