#π I have no clue how to code or use code, I'm just trying to get this file to work (T-T)
282 messages Β· Page 1 of 1 (latest)
@dim wraith
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
The zip file isn't sending π
What is the code supposed to do
This is the code from GITHUB, I just have no utter idea how to get it to work.
Trying to administrate a server and prevent exploiters from joining.
https://github.com/OptimalLukasDev/Discord-Member-Id-Scraper
Would make gathering those within exploiter servers and massbanning them easier, to prevent potential harm or game leaks (It's for a game server)
Are you getting an error?
What step are you currently on
Did you install the repos contents, did you install requirements, did you run the code and are getting an error?
Ok so I installed the code as a ZIP
I THINK I installed the requirements? But I don't know what to do with them or where to place them
Okay, here let me walk you through the steps of how to get a script working and installing the requirements
1st: unpack the ZIP using whatever you use (7zip, winzip, etc)
Are you on windows?
Okay. Press windows key and r at the same time and type in powershell
A blue window will pop up
Don't be sacred that's where the code is going to run in
Now, is the zip in the downloads folder
Or desktop
Downloads
Okay
Let me look up where the download path is I don't use windows
Type in cd C:\Users\mekie\Downloads
In the left it should show the new path
"cd C:\Users\mekie\Downloads" ?
Yes
Now type dir and find the folder where the zip unpacked in
Now type cd nameoffolder
dir downloads?
Just dir
You're already in downloads
When you cd inside the folder, type pip install requirements.txt
I hope you have Python installed
My bad, do pip install -r requirements.txt
Can you type dir
Okay so do cd and the name on screen
The discord-member...
And try pip install -r requirements.txt
Yup
It's a folder within a folder because the zip contained the folder so it made a folder holding the folder when it unzipped
Yep that checks.
Try pip install --upgrade pip
No it's the same thing
Oh
It seems that one of the packages is non existing
Let me see if it exists rq
Okay do pip install discord pysqlite
I couldn't find any pylibsqlite and that's the closest that comes to it
So let's hope it works
Ok do pip install discord pysqlite3
Well this is going to be a pain
π«
Basically you need to install more things
Oh
Do you see that link in the error
Go to that website and follow the instructions
Build Tools?
To get the Microsoft C++ Build Tools
Yup
Basically it's like you have wood and you have to make a bookshelf. The build tools are your hammer and nails
You have the materials and the instructions, just not the tools to build it
By the way, did you make sure the code you're going to run is safe?
Security is very important when running a random script from GitHub so it's good to make sure
Did the C++ build tools install?
Ok I think it is installed.
Try running the pip install discord pysqlite3
It in fact did NOT finish downloading. 
I'm probably sleeping in 10min so I might not be able to stick for long
Oh no D:
Just leaving this here for later, when everything finishes, these are the final steps
I've been ruthlessly violating my keyboard for a solid 6h today I'm pretty burnt out so I can't stay up for long, sorry
It's alright
during pip install
@dim wraith im pretty sure you would need to download microsoft build tools
https://visualstudio.microsoft.com/visual-cpp-build-tools/
I definitely did
Also THANK YOU for showing up π
these are the workloads you installed?
mhm
could you press modify and see what comes up
Here it is!
could you try selecting desktop development with c++ again?
there are some "optional" things that arent ticked by default that may have not been installed
are you on windows 10 or 11?
Windows 11
ight one sec let me see which ones you should select, could you scroll and screenshot the rest?
ight ty one sec
ight for me i just checked which ones i have installed, i have them all selected and installing the package worked, i think 1 or 2 arent needed but i cant find specific info on each, so just try selecting them all
and then wait for them to install
run the pip command again
Alright
if it still doesnt work there is still some other ways to download it we can try

Downloading!
okii lmk when its done
Downloaded, testing the pip again.
This was the first half:
try installing it separately without discord
can you give the full error like paste it in chat starting from where it says error:
Building wheel for pysqlite3 (pyproject.toml) ... error
error: subprocess-exited-with-error
Γ Building wheel for pysqlite3 (pyproject.toml) did not run successfully.
β exit code: 1
β°β> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3\dbapi2.py -> build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3_init_.py -> build\lib.win-amd64-cpython-312\pysqlite3
running build_ext
Builds a C extension linking against libsqlite3 library
building 'pysqlite3._sqlite3' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMODULE_NAME="pysqlite3.dbapi2" -I/usr/include "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\blob.c /Fobuild\temp.win-amd64-cpython-312\Release\src\blob.obj
blob.c
C:\Users\mekie\AppData\Local\Temp\pip-install-5f8trbj0\pysqlite3_a34e94a973fb4510b181008892c0eadd\src\blob.h(4): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pysqlite3
Failed to build pysqlite3
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysqlite3)
!code
i would recommend formatting it like this, to be easier to read
error: subprocess-exited-with-error
Γ Building wheel for pysqlite3 (pyproject.toml) did not run successfully.
β exit code: 1
β°β> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3\dbapi2.py -> build\lib.win-amd64-cpython-312\pysqlite3
copying pysqlite3\__init__.py -> build\lib.win-amd64-cpython-312\pysqlite3
running build_ext
Builds a C extension linking against libsqlite3 library
building 'pysqlite3._sqlite3' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\blob.c /Fobuild\temp.win-amd64-cpython-312\Release\src\blob.obj
blob.c
C:\Users\mekie\AppData\Local\Temp\pip-install-5f8trbj0\pysqlite3_a34e94a973fb4510b181008892c0eadd\src\blob.h(4): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pysqlite3
Failed to build pysqlite3
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pysqlite3)```
try pip install sqlite3 then pip install pysqlite3
i saw someone on reddit say it installed the necessary files for them, not sure if it will work though, i cant recreate it
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3```
bro the only answers im finding is having to manually install and build sqlite 3 but idk how to do thatt
pysqlite3 is just a wrapper. It won't work if you don't actually have the SQLite libraries in your system (or the devel package if you built Python from sources).
yeah idk im sorry,
do pip show sqlite3 and send the result,
WARNING: Package(s) not found: sqlite3```
if it says its installed then pysqlite3 should be working, but if it says its not installed, you can try reinstalling python
yeah you need to reinstall python
do you know how to uninstall python?
Currently it's upgrading, maybe that was an issue?
whats upgrading? python?
mhmm ight when its done try doing pip show sqlite3
yeah try uninstalling and reinstalling it
are these all the options? can u take a full screenshot im not sure which page ur in rn is this the custom installation page or the default one?
here select every option except the first one(if you dont want python for all users)
then install
Installed
does pip show sqlite3 work?
WARNING: Package(s) not found: sqlite3
and you fully uninstalled and reinstalled it?
yeah no smth weird is going on, i dont know how to install it manually, i think you should close this thread, and make a new one with all the info and everything you have tried
Wait some things were missing
the py launcher and standard library recompile
Second attempt trying to download these, they disappeared for some reason the previous time
yeah yeah retry with all
Wtf π
(They are unselected again)
bruh
i did find that but i am not sure how you would go about downloading it
you could try finding tutorials or messing around '
but i have no idea
the easiest thing to do would be reinstall windows from the os drive lmaoo
uhhhh
im not being fully serious btw lol
if u really need this to work and cant download manually and no one iss helping i would personally do it
but idk about u
reinstalled what? windows?? that fast?
Umm
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
It's wild this thread has lasted so long
huh?? wait
oj
The module you linked on GitHub it says right on the front page... Selfbots violate discord ToS.
The module uses a selfbot to do what it does
i didnt link a module?
i didnt even see this
from the previous messages sent since i already had the error i never scrolled up
No itβs at 90% rn
Sorry, the one OP linked. Here: #1266136061684355154 message
<@&831776746206265384>
yeah i didnt see it, assumed everything was fine since they had been receiving help for so long by another person
All good
Wait am I blind? Where does it say itβs against TOS?
yeah sorry i will doube check next time
lets say it doesnt you already got warned about it here
https://discord.com/channels/267624335836053506/1266157740129259530
then you go and make a thread about the same exact thing
Is there a non-bad version π
using a bot, you did say this was a server you moderate, so you should be able to add bots to it
@dim wraith like i said earlier this project violates discord's terms of service (and our rule 5), please don't ask for help getting this project to work on this server again
Would a bot be able to prevent users from join within exploiter servers?
Or massban them?
what does this mean
i think there is an oauth permission to allow your bot to see what servers the user is in not sure tho
i think they're trying to check if a person who joined the server is in other servers that are malicious
thats why they were trying to scrape members
nothing you can do about that unless your bot is also in one of those other servers
Letβs say there is the main server
And someone is in a exploiter server
Our server would either want to outright ban them (with something like sapphire or carlbot) or prevent them from joining
yes nothing you can do about that unless your bot is in that exploiter server
yeah nvm there is no bot permission for that
it would need to be manual checks
also
i feel like that would be kind of useless
people tend to use alts for this kind of stuff
no, you were right originally. there is an oauth2 to get all guilds the user is part of
Double counter, Alt identifier, those bots tend to prevent the majority.
but the user has to add that connection to their account
this is what happens when you try to fact check with chatgpt lmao
i mean you could try
The solution I was trying would just be a quick ID grab followed by a mass ban (from a bot that includes such features, which we have)
Rather than manually selecting each ID.
"quick ID grab" wdym
CTRL+A, CTRL+C, CTRL+V, Massban
you can use a bot to get all the member IDs in a server
Rather than going through each member on the right hand member bar ->
Remotely?
huh
what do you mean?
ok i think the 4 am confusion is getting to me im out
As in I would only need the server and or channel ID to gather all the IDs
you also need your bot to be inside that server with some privileged intents
That's the main issue.
Especially when dealing with multiple different exploiter servers.
genuine question, have ppl tried to target your server that many times that you need to do all thos
i dont think there is a way to do all this without breaking TOS
your best bet is to get your users to connect their account with an OAuth2 application which can get all the servers they're part of
Asset leaks and distribution, Distribution of exploits and or hacks, Cross/Account trading for IRL money, etc.
Yes, there have been a few.
yeah and add a check to make sure their account is connected and if not kick them from the server ig?
feels kinda meh but it would work technically
yeah ig lol
Any suggestions?
that is my suggestion
though it may be worthwhile to only ban for actions that are actually taken on the server
Found this thing:
import discord
from discord.ext import commands
@commands.command()
async def get_ids(ctx):
with open("folder/userdata.json", 'r') as f:
users = json.load(f) # Opens json file
for members in ctx.guild.members:
id = members.id
users["userid"] = {"ID":id}
print(f"ID: {id} has been saved to json file")
with open("folder/userdata.json", "w") as f:
json.dump(users, f, indent=4)```
Hey @dim wraith!
It looks like you pasted Python code without syntax highlighting.
Please use syntax highlighting to improve the legibility of your code and make it easier for us to help you.
To do this, use the following method:
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
You can **edit your original message** to correct your code block.
I have no clue what this means π
i think you're gonna have a really hard time doing anything involving code if you "have no clue how to code"
bec compiling bits and pieces of code from the internet without understanding what it does at all is not gonna work in the long run
real
Hence why I made a forum π
yes, but this exists to help people who are having issues, not write code for them
Hence why you need to learn the basics of Python
as this is a python server we expect people to have some baseline knowledge and we help people fix issues
if you're looking for someone to build a tool for you, fiverr or upwork may be better suited
Not build a tool, just instruct me how to use a tool already made.
this is not the place for that either
we're a learning server, we teach people how to write python
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
π I have no clue how to code or use code :(
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.



