#πŸ”’ HELP ME FIX MY BROKEN CODE

80 messages Β· Page 1 of 1 (latest)

tulip etherBOT
#

@rapid leaf

Python help channel opened

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.

bleak tapir
#

@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

tulip etherBOT
#
Pasting large amounts of code

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.

silver condor
#

Oof. :(

#

@rapid leaf you might want to use a .env to store your bots token

rapid leaf
silver condor
rapid leaf
#

Note: im a beginner and i wrote the code using claude ai

rapid leaf
silver condor
rapid leaf
#

i changed it 2 times from that

silver condor
#

Token is a really REALLY sensitive piece of information

silver condor
#

Good, now send your code as text, I'll show you how to use .env before we continue

rapid leaf
#

it includes all files and the old bot token

#

wait

silver condor
#

First of all, send the error text.

rapid leaf
silver condor
#

Select with mouse and control + shift + c

rapid leaf
#

its not from vs code, i got a discord bot hosting from a website

#

this is node.js

silver condor
#

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

rapid leaf
#

if i give u the code, can u make it a python code?

#

@silver condor

silver condor
#

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

rapid leaf
#

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

silver condor
#

oh God... You don't know even the most basic of programming?

silver condor
silver condor
rapid leaf
#

yk what screw it, im tired of ai

#

ill just start learning python

silver condor
#

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. ;)

silver condor
#

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

rapid leaf
#

i see

#

good job bro

silver condor
#

Thanks, thanks

#

I hope you make something cool too

#

Since you want to learn, let's go about that

#

!learn

tulip etherBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

silver condor
#

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.

rapid leaf
#

im reading the python thing

silver condor
# rapid leaf i see

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

rapid leaf
#

u could join my discord server link in bio @silver condor

silver condor
#

The fucking clanker even filtered his token

fallen ledge
#

moreover its claude

#

the "greatest" vibecoding "tool" they say

#

πŸ—£οΈ

tulip etherBOT
#
Python help channel closed for inactivity

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.