Compare commits
No commits in common. "09c555ec78c8e03d298dea3581fad2937b9ece6a" and "639bd04d751edb2f1e1e9599188a1a69584b65a4" have entirely different histories.
09c555ec78
...
639bd04d75
|
@ -1,5 +0,0 @@
|
|||
bot.py
|
||||
README.md
|
||||
node_modules
|
||||
env.list
|
||||
.git
|
10
Dockerfile
10
Dockerfile
|
@ -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
2
bot.js
|
@ -42,10 +42,12 @@ async function remove_notlogged(){
|
|||
let members = guild.members.cache;
|
||||
members.forEach(async (key, value) => {
|
||||
var r = false;
|
||||
console.log("---------------------\nkey : %s\nvalue : %s", key, value);
|
||||
v.forEach((jkey, jvalue) => {
|
||||
if (jvalue == key)
|
||||
r = true;
|
||||
})
|
||||
console.log(r + "\n---------------------");
|
||||
if (r == false)
|
||||
{
|
||||
let user = await guild.members.fetch(key);
|
||||
|
|
Loading…
Reference in New Issue