Compare commits

..

No commits in common. "09c555ec78c8e03d298dea3581fad2937b9ece6a" and "639bd04d751edb2f1e1e9599188a1a69584b65a4" have entirely different histories.

4 changed files with 2 additions and 18 deletions

View File

@ -1,5 +0,0 @@
bot.py
README.md
node_modules
env.list
.git

View File

@ -1,10 +0,0 @@
FROM debian:9
RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_16.x |bash -\
&& apt-get install nodejs -yq \
&& apt-get clean -y
ADD . /app/
WORKDIR /app
CMD npm i && npm remove discord-api-types && npm i discord-api-types@0.27.2 && node bot.js

2
bot.js
View File

@ -42,10 +42,12 @@ async function remove_notlogged(){
let members = guild.members.cache; let members = guild.members.cache;
members.forEach(async (key, value) => { members.forEach(async (key, value) => {
var r = false; var r = false;
console.log("---------------------\nkey : %s\nvalue : %s", key, value);
v.forEach((jkey, jvalue) => { v.forEach((jkey, jvalue) => {
if (jvalue == key) if (jvalue == key)
r = true; r = true;
}) })
console.log(r + "\n---------------------");
if (r == false) if (r == false)
{ {
let user = await guild.members.fetch(key); let user = await guild.members.fetch(key);

View File

@ -1,3 +0,0 @@
DISCORD_TOKEN=OTQzNTA2NTgxMjkzNzc2OTQ3.Yg0C-g.XOjFinUc-Gt1gwtrSILPb0Mlspo
AUTH_TOKEN=test