Compare commits
2 Commits
639bd04d75
...
09c555ec78
Author | SHA1 | Date |
---|---|---|
RoyaLProg | 09c555ec78 | |
RoyaLProg | d4127f25ce |
|
@ -0,0 +1,5 @@
|
||||||
|
bot.py
|
||||||
|
README.md
|
||||||
|
node_modules
|
||||||
|
env.list
|
||||||
|
.git
|
|
@ -0,0 +1,10 @@
|
||||||
|
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
2
bot.js
|
@ -42,12 +42,10 @@ 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);
|
||||||
|
|
Loading…
Reference in New Issue