Darkempire78 / Raid-Protect-Discord-Bot

A Discord Bot that allows you to protect your Discord server with captcha, anti profanity, anti nudity image, anti spam, account age required, logs...
GNU General Public License v3.0
232 stars 75 forks source link

Discordbot crashes on running #5

Closed FeelsBadMan1 closed 3 years ago

FeelsBadMan1 commented 3 years ago

Hello, i used the new version of the bot and then i editet the configfile and added my bottoken. after taht i tried to run the script within pycharm but then i got following output: image

Darkempire78 commented 3 years ago

Have you updated the discord.py version ? (The lastest is 1.5.1)

FeelsBadMan1 commented 3 years ago

I fixed it by updating pycharm however if someone joining no captha will be sent and i see this output: image

Darkempire78 commented 3 years ago

Check if the captchaChannel (in configuration.json) is well filled. 🤔

FeelsBadMan1 commented 3 years ago

I did that i think i messed something up with the code i now downloaded the code again and its almost working. However i did the setup correctly i made giveroleaftercaptha, setup channels etc. but if someone is joining to bot give him the untested role so he have acess to the verificationchannel but then the bot dont send any captha and also dont print any log out

Darkempire78 commented 3 years ago

Since the new discord.py version, this bot have to use the "server members intent", so you have to enable it in the Discord's developers portal.

FeelsBadMan1 commented 3 years ago

Yes i alredy did that before because i had a issure output that said something with server member intents on developer portal so it is still toggled on. however you can try it on your side i not changed anything on the code but somehow it is not working.

Darkempire78 commented 3 years ago

I will retry that

FeelsBadMan1 commented 3 years ago

Okey

FeelsBadMan1 commented 3 years ago

Please let me know if it is fixed

Darkempire78 commented 3 years ago

Very strange because the bot work very well for me image

FeelsBadMan1 commented 3 years ago

Well.... MAybe its not possible to host capthaverificationbots on heroku because if i add it to heroku everything i working fine expect the bot sending the image if a user joining i think its because of heroku the same issure happen if i use repl.it i not tried it on my windowspc but maybe it will work there.

Darkempire78 commented 3 years ago

Please send me the log file.

FeelsBadMan1 commented 3 years ago

At Heroku i dont get any output but on repl.it i get following: image

Darkempire78 commented 3 years ago

I'm sorry, I have never use Heroku and Repl.it. I do not know how help you. The better way to solve that is to search on google the error.

FeelsBadMan1 commented 3 years ago

Oh okey maybe its not working there. do you know any free hosting privider 24/7 where the bot is working? Im sure that it is working on Windows10 2019 Server (RDP) but i dont know any good free Provider. It dont is a big thing to pay for it because i have it on a small server that i just created so paying for a Windows10 RDP make me losing some money that i really need.

Darkempire78 commented 3 years ago

Don't give up! I think that it's easy to fix that. You can create an issue on stackoverflow.com or be helped on a Discord serveur like it https://discord.com/invite/code or search another on https://disboard.org/fr/servers/tag/programming?sort=-member_count

FeelsBadMan1 commented 3 years ago

Okey i will do this. thanks for your help anyways