Skip to content

An API that uses Express to track when someone votes for your bot on Wumpus.store

Notifications You must be signed in to change notification settings

arceusdev/wumpus-store-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wumpus.store

Wumpus Store Express

Receive an embed by webhook when someone votes for your bot on Wumpus.store

Version Stars Forks

🤔 What is it?

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!

🛠️ How to setup?

  • Clone the repository
    • Use git clone https://github.com/blurwind/wumpus-store-express
  • Install the dependencies by using npm install
    • Run npm install in the terminal
  • 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
  • Adapt the code depending on where you want to host the API (especially the part for starting the server)
  • 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

👀 How it looks?

Final

About

An API that uses Express to track when someone votes for your bot on Wumpus.store

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published