#π HELP ME FIX MY BROKEN CODE
80 messages Β· Page 1 of 1 (latest)
@rapid leaf
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.
@rapid leaf I removed your screenshot because it contains your bot token. You'll have to generate a new one.
Also, as the bot message says, post the code as text.
!paste
So that everyone can easily read your code, you can paste it in this website:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
are you going to help me?
Please, first of all, regenerate your bot's token.
Note: im a beginner and i wrote the code using claude ai
na that was an old screenshot
Go to Discord Developer Portal and regenerate ASAP.
i changed it 2 times from that
Still, you should.
Token is a really REALLY sensitive piece of information
okay done
Good, now send your code as text, I'll show you how to use .env before we continue
uh its a .zip file
it includes all files and the old bot token
wait
The only relevant parts of your code, we don't need the whole thing.
First of all, send the error text.
error text in console, dont have it
Just copy
Select with mouse and control + shift + c
npm error
This is JavaScript
Not Python
No can do here
I only have experience with Python
I can tell you about general stuff about bots, but I don't know JavaScript
If I can understand what it does, I can, but don't you prefer your code as is? I suppose you made it JS for a reason
no, i made itfrom claude.ai and i gave him the command to make it a python code
he didnt do it
Make me a python discord bot. requirements,
Custom leveling system identical to arcane
Customizable tickets system
Role management system (role add, role delete, role create, role give)
A modding system (mute, timeout, kick and ban)
A rules system
A reaction role system
Note: make sure its not Node.js and make it python
this is what i need it to do
oh God... You don't know even the most basic of programming?

I'm seeing all these requirements are they're all stuff that other bots can do. What's the purpose of your bot?
discord management
yk what screw it, im tired of ai
ill just start learning python
This is the way π
If you learn, there's lots of people here that love to teach and help beginners
I am a beginner myself, only have 3 months in this world, and it's been amazing thanks to the wonderful people of this server. ;)
i see
I also made a discord bot
But instead of being mainly for management, it's meant to be kind of a helper
It can run code, has a list of our projects and saves snippets of whatever we need
Thanks, thanks
I hope you make something cool too
Since you want to learn, let's go about that
!learn
Here are the top free resources we recommend for people who are new to programming:
- Automate the Boring Stuff β an online book (also available to purchase as a physical book)
- Harvardβs CS50P course β video lectures (slides and notes provided) with exercises
- Python Programming MOOC 2026 course β text-based lessons with exercises
- Corey Schafer's YouTube playlist
For a full, curated list of educational resources we recommend, please see our resources page!
You can pick one of those resources and start learning about python and programming basics
But remember, the best way to learn, is to practice, so you can't just watch, sit and expect everything to stick at first sight, you must use what you learn.
Also, one last recommendation is to completely AVOID AI. For everything coding related.
No quick questions, no "let's think about this", AND ABSOLUTELY no "solve this, I'm stuck" or "give me a hint".
Your problems are yours, and trust me, it hits different when you start to solve them on your own.
@rapid leaf
That's all for now.
If you're curious, I started with Corey Schafer's playlist, even tho it's a little dated, is an incredibly good source.
i see
im reading the python thing
If you have any questions, feel free to make another thread. And if no one answers in a bit, you can ping me, but I might not always be available. :b
okaa
u could join my discord server link in bio @silver condor
Look at TS @fallen ledge
The fucking clanker even filtered his token

This help channel has been closed. 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.