From 332469ca00def16cfa41bab2b24b621e2c09985a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 28 May 2020 09:59:39 +0000 Subject: [PATCH] fuck --- .replit | 2 +- src/config.json | 4 ++-- src/index.js | 17 +---------------- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.replit b/.replit index d409ef8..31ed698 100644 --- a/.replit +++ b/.replit @@ -1,2 +1,2 @@ language = "nodejs" -run = "npm start" \ No newline at end of file +run = "node --trace-warnings ./src/index.js" \ No newline at end of file diff --git a/src/config.json b/src/config.json index dbf0d1d..9da86c9 100644 --- a/src/config.json +++ b/src/config.json @@ -1,4 +1,4 @@ { - "token" : "Njc4MDkzNjY4NzcwNTEyOTE3.Xr7SNw.XS_D_dEJ7hX6N5Rmnfr_OQpfznU", - "prefix" : "?" + "token" : "NzE1MjM2MzUxNjQ5MzgyNDIw.Xs6Wog.lKUAEDIK4CgiFOlDlTmsDYImzJo", + "prefix" : "//" } diff --git a/src/index.js b/src/index.js index 428bd5e..7193b02 100755 --- a/src/index.js +++ b/src/index.js @@ -12,29 +12,14 @@ const client = new Discord.Client(); //THIS BOT IS FOR DEVELOPMENT USE ONLY! //WATCH OUT ON PULL REQUESTS //CONTACT ALEX BEFORE MERGES - -function activity() { - client.user.setActivity(`${client.users.cache.size} of you horrible people`,{ type: 'LISTENING' }); -}; +client.user.setStatus('dnd', '0SSELB0T DEVELOPMENT') client.on("ready", () => { // This event will run if the bot starts, and logs in, successfully. console.log(`Bot has started, with ${client.users.cache.size} users, in ${client.channels.cache.size} channels of ${client.guilds.cache.size} guilds.`); // Example of changing the bot's playing game to something useful. `client.user` is what the // docs refer to as the "ClientUser". - activity(); }); -//Updates people count -client.on('guildMemberAdd', member => { - console.log(`New member joined: ${member.name} (id: ${member.id}).`); - activity(); -}); -client.on('guildMemberRemove', member => { - console.log(` member left: ${member.name} (id: ${member.id}).`); - activity(); -}); - -setInterval(activity, 300000); ////// ACTUAL MESSAGE PROCESSING client.on("message", async message => {