botJS #1

Merged
Starthur merged 12 commits from botJS into main 2022-05-27 09:49:52 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 20970bc0a6 - Show all commits

4
bot.js
View File

@ -15,7 +15,7 @@ async function get_guildID()
async function remove_notlogged(){
let guild = CLIENT.guilds.resolve(await get_guildID());
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(() => {
console.log("Cache reloaded !");
@ -65,7 +65,7 @@ async function remove_notlogged(){
}
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());
const rolesCollection = new Map([