mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
update valorant stats to grab api url from .env
This commit is contained in:
parent
c5eb5f21c8
commit
2ed031ec7e
1 changed files with 2 additions and 1 deletions
|
@ -29,9 +29,10 @@ module.exports = {
|
||||||
|
|
||||||
// Convert the username by replacing "#" with "%23"
|
// Convert the username by replacing "#" with "%23"
|
||||||
const formattedUsername = username.replace("#", "%23");
|
const formattedUsername = username.replace("#", "%23");
|
||||||
|
const apiKeyUrl = process.env.VALORANT_API_URL;
|
||||||
const apiKey = process.env.VALORANT_API_KEY;
|
const apiKey = process.env.VALORANT_API_KEY;
|
||||||
|
|
||||||
const url = `https://val-api.aydenjahola.com/player/${formattedUsername}/${statsType}`;
|
const url = `https://${apiKeyUrl}/player/${formattedUsername}/${statsType}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
Loading…
Reference in a new issue