Skip to content

Bot that retrieves the skin offers on one's Valorant store

License

Notifications You must be signed in to change notification settings

sudhxnva/valo-store-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValoStoreBot

A simple Discord bot that retrieves the skins on sale in one’s Valorant store.

Set up

  1. Clone the repository from https://github.com/sudhxnva/valo-store-bot.git

  2. Run the command npm install to install all dependencies.

  3. Create a Discord bot on the Discord Developer Portal and generate an access token. (refer to this guide)

  4. Create a .env file in the root folder with the following values:

    SECRET = "random_string_to_encrypt_passwords"
    BOT_TOKEN = "your_discord_bot_token"
    DB_URL = "mongoDB_connection_string"
    

    (Yes, the bot will need a MongoDB instance)

  5. Run the bot using npm start

    For development, you can use npm run dev (runs with nodemon). The bot will listen to the command !test instead of !store in dev mode.

Note: This implementation of the bot was designed for a small Discord server with my friends in it. Hence, it encrypts the password and stores it in a DB so that a user doesn’t have to type in their credentials every single time. The app is only encrypting the password, NOT hashing it(read the difference here). So this won’t suit big servers where you people who are not comfortable with their passwords being stored in a random user’s database (A solution to this is that you can modify it to only store the username and ask them to enter their password every time).

Usage

!store command on a server to retrieve the store.

image

If a user is calling the command for the first time, they will be prompted to enter their details on a Discord DM chat with the bot.

image-20210505160637182

image-20210505160734269

Once registered, the user will not have to enter their details again. The !store command should work smoothly.

Credits

About

Bot that retrieves the skin offers on one's Valorant store

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published