#I’ve been stuck on making slash commands in a cog and or without a cog.

1 messages · Page 1 of 1 (latest)

whole sphinx
#

Hello everyone, Im needing assistance on making a / command within a cog, so I can have an organized file structure, etc. Is that even possible? I’ve been trying ever since i started using nextcord, and with the help of AI, forums, and the github, I can’t find a real answer / solution to this.

I’m about to give up sobpray but I don’t know if theres no support for this or not, if not, could I have some suggestions on what wrapper / py extension i should use to make bots with?

P.S This is my first time ever making a support thread like this, please know that I may not have the correct format, etc. Nor the needed information. (I’m currently really tired right now), and I just wanna give up.

I’m willing to provide you guys with any and all code snippets I have / saved from the past if you would like to see it.

#

Please help! 😭

delicate fern
#

If you want I'll give my loader + cog example I'm a hour or 2

delicate fern
#

@whole sphinx

  • main py file bare minimal to load cogs that are in /cogs
  • example cog one of my cogs i gutted the real command and pasted the emaple slash for in cogs. but in there you can see how to init vars to the class and on line 27-28 is needed in a cog to load the cog. in add_cog() should match your calss , yes you can copy passt line 28 and load more than one cog class
whole sphinx
#

@delicate fern

delicate fern
whole sphinx
delicate fern
whole sphinx
#

so just do python3 -version?

delicate fern
#

Yes ,Then content of the pip freeze file

whole sphinx
#

okay so im running a code server

#

and stuff

#

holy helll this is confusing 😭

delicate fern
#

Hey! To help me assist you better, please follow these steps:

Check your Python version:

Open your command line (Command Prompt on Windows, Terminal on Mac/Linux).

Type this command and press Enter:

python --version

or if you're using Python 3:

python3 --version

This will display your current Python version (e.g., Python 3.9.5).

Check your pip version:

In the same command line, type:

pip --version

or for Python 3:

pip3 --version

This will show the version of pip installed (e.g., pip 21.1.2).

Once you've done that, just let me know what versions you see, and I can help you from there!

#

..................................................................

#

Check all installed modules and their versions:

To list all the Python modules you have installed, type:

pip list
or for Python 3:

pip3 list

This will give you a list of all the installed modules along with their versions (e.g., numpy 1.21.2, requests 2.25.1, etc.).

#

@whole sphinx hope the ai explain made scene please send those so we can assist, also copy past your main + cog files to https://paste.nextcord.dev/ then send the links once saved

whole sphinx
#

$ python3 -version
Unknown option: -e
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
$ sudo apt python3 -versioon
/usr/bin/sh: 2: sudo: not found
$ sudo python3 -version
/usr/bin/sh: 3: sudo: not found
$ python3 -m --version
/usr/bin/python3: No module named --version
$ python3 -m pipp --version
/usr/bin/python3: No module named pipp
$ python3 -m pip --version
pip 25.3 from /home/container/.local/lib/python3.11/site-packages/pip (python 3.11)
$

#

dont mind the failed attempts

#

😭

#

python 3.11.2

delicate fern
#

you need to update python to 3.12 or 3.13 then reinstall nextcord

whole sphinx
#

please walk me through updating and reinstalling nextcord pls’

#

bc i am too stupid for this

#

😭

#

I am so so sorry for wasting ur time today

delicate fern
#

uninstall python

#

then install the latest

whole sphinx
#

so python3 -m -u python?

#

or python3 -u python

delicate fern
#

remove python completly

whole sphinx
#

how can i do that?

#

😭

delicate fern
#

like go to control pannle

#

go apps

#

look for python

whole sphinx
#

uhh

#

im on a code servvver

#

server*

#

like a server thats hosting vsc

#

so i can get full functionality

delicate fern
#

vs code server or a vps

whole sphinx
#

vs code server

delicate fern
#

on what is is hosted

delicate fern
whole sphinx
delicate fern
#

tldr is update python so a new versoin and install nextcord again , ask caht gpt

winter nova
#

yeah

#

to python 3.12 or python 3.13

whole sphinx
#

if i get u the image that the vps is running on, can u tell me a command to update it?

#

bc idk what to ask gpt

delicate fern
# whole sphinx bc idk what to ask gpt

"hey can you please assist me i need to install python 3.12 or 3.13 then reinstall the python moduale nextcord , i am runiing my deveplment on a vscode server on docker "

winter nova
#

what version of linux are they using though

whole sphinx
#

Is there a command to see that?

delicate fern
#

neofetch

winter nova
#

uname -a

whole sphinx
#

uname -a doesn’t work

winter nova
#

can you send a screenshot

whole sphinx
#

where should i do the command at? in the actual terminal in the panel or vs

winter nova
#

in the terminal

whole sphinx
#

the version thingy says “latest” so uh

delicate fern
#

thats the code server........ @winter nova thay have a waerd setup

winter nova
delicate fern
#

look at imges

whole sphinx
#

do you just wanna go into a vc

#

and i can screen share

#

wait should i do stop

#

STFP*

#

or

whole sphinx
#

I wanna try and run it and see if it works

delicate fern
#

It won't work

#

Python needs to 3.12 miniman for the version of nextcord that supports cogs , models exct

delicate fern
elder haven
#

what

#

nextcord supported cogs and modals forever, only the latest needs the latest python

#

theres so much missing info

elder haven
delicate fern