Receive an embed by webhook when someone votes for your bot on Wumpus.store
This is an API made with Express for Wumpus.store, to allow bot developers to receive embeds via a Discord webhook when users vote for their bots on Wumpus.store.
ℹ️ This can only be used if your bot is listed on Wumpus.store!
- Clone the repository
- Use
git clone https://github.com/blurwind/wumpus-store-express
- Use
- Install the dependencies by using
npm install
- Run
npm install
in the terminal
- Run
- Rename
.env.example
to.env
and fill it with your data- Make sure to choose a strong password for your authentification token, as it will be used to verify that requests are coming from Wumpus.store : paste it in the
AUTH_TOKEN
field - Create a webhook on your Discord server, click here for a guide : paste the URL in the
WEBHOOK_URL
field
- Make sure to choose a strong password for your authentification token, as it will be used to verify that requests are coming from Wumpus.store : paste it in the
- Adapt the code depending on where you want to host the API (especially the part for starting the server)
- Vercel can be a good solution, here's a tutorial on how to do it
- Once your API is online, go to your bot's Wumpus.store page and click on the "Edit Discord Bot" button.
- On the left, you have a "Webhooks" section with two fields.
- In the first field, enter the URL of your API (for example https://x.com/vote |
/vote
need to be at the end of the URL) - In the second field, enter the EXACT same authentification token that you choosed earlier in the
.env
file - Save your changes, now you can test if everything is working by clicking on the "Send Webhook" button