changed url

This commit is contained in:
CAMBIUM Camille 2022-05-01 14:25:42 +02:00
parent 09c555ec78
commit 20970bc0a6
1 changed files with 2 additions and 2 deletions

4
bot.js
View File

@ -15,7 +15,7 @@ async function get_guildID()
async function remove_notlogged(){ async function remove_notlogged(){
let guild = CLIENT.guilds.resolve(await get_guildID()); let guild = CLIENT.guilds.resolve(await get_guildID());
let token = O_TOKEN; let token = O_TOKEN;
let url = `https://preprod.42ctf.org/api/bot/discord?token=${token}`; let url = `https://www.42ctf.org/api/bot/discord?token=${token}`;
await (guild.members.fetch()).then(() => { await (guild.members.fetch()).then(() => {
console.log("Cache reloaded !"); console.log("Cache reloaded !");
@ -65,7 +65,7 @@ async function remove_notlogged(){
} }
async function rank(token = O_TOKEN){ async function rank(token = O_TOKEN){
let url = `https://preprod.42ctf.org/api/bot/discord?token=${token}`; let url = `https://www.42ctf.org/api/bot/discord?token=${token}`;
let guild = CLIENT.guilds.resolve(await get_guildID()); let guild = CLIENT.guilds.resolve(await get_guildID());
const rolesCollection = new Map([ const rolesCollection = new Map([