#๐ i need help with a discord bot that creates me support ticket
271 messages ยท Page 1 of 1 (latest)
@somber haven
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.
so bassically
when i run the bot
and try using the command for the support tickets
it says
command not found
Share the screenshot
screenshot of what it says
when i run the bot
and command?
or screenshot of the code
@pliant trail
here
@pliant trail
Please react with โ
to upload your file(s) to our paste bin, which is more accessible for some users.
i bought
it
from a bot dev
:p
but
he wont fix it
and i need help
i mean
everything else
worked
except for this part
:p
you have a command like this
@bot.command()
async def setup_ticket(ctx):
where you define the command, but you need to add it to the bot
lemme look up the doc 1 sec
hm actually no that's not right. Its either the @bot.command() decorator or Bot.add_command()
Hm lemme think
do yk?
How are you running the bot
and how did you invoke the command in discord?
Hm I mean....... I feel like it should work
Are you sure you haven't modified the file and haven't saved it?
running an old version?
we could also try rename the command and try again
im pretty sure
i didnt change anything
in the files
except for guild ids
and yk
ima try changing the command
nd see if it will work
Can you screenshot the code itself rather than the terminal log. Mightvbe able to find the issue. Just make sure to mark over / hide any tokens if they are in the code file itself.
The file is here ^
the uhh
ah lol was on my phone for a min. idk how i over looked that.
changing command
didnt work
@abstract yew '
@heady quail
๐ญ
changing command
didnt work
what EXACTLY did you type into discord when you tried to use the command?
did you type support_ticket
or did you try psupport_ticket
sorry not support..... setup.
psupport_ticket
cuz
i changed the command
ok just checking its an easy oversight
do i gotta give yall
my other bot files
aswell
or only this one
?
other are the main.py
but thats for another ticket sistem
its sm else
๐ค
hmmmm.
yup
yep... im sorry but this seems to be the only issue i can find.
want the main.py aswell
maybe its from that
though i am far from being "good" so its likely something i overlooked or just dont know.
couldnt hurt.
yeah make sure to do that lol
no
its js for the uhh
support part
but
WAIT
what if
i try changing
the prefix
since i got
same prefix
on 2 dif commands
???
Please react with โ
to upload your file(s) to our paste bin, which is more accessible for some users.
the file you shared is a standalone program. If you are running a different file then nothing in that file will work unless you import it.
You need to integrate the code from the second file into your main program. You can use extensions or just put the cog in your main file.
@heady quail
uh
ik i sound dumb
so
il js insert
all i had on the support ticket
onto the main.py
js like that?
js copy n paste all of it
???
@wide shuttle
@heady quail
uhh
i tried putting all
into a single file
and still
doesnt work
@wide shuttle
still nothing works
ok try at the top of your main.py file. where you import discord / random / string/ and asyncio. to add this......
this what?
one sec
kk sure
from support_ticket import TicketButton, CloseButton
support_ticket should be the name of that file itself.
without the .py
pause pause
so
my support tickets file name
should only bew
support_ticket
?
cant see that from what you have shared. would show in your IDE where you switch between the files to view them
i insert this
into my
support_ticket file
?
into your main file.
kk
near the top where you import all the other libraries
like this?
one sec.
kk
lol
np
but where that says support_ticket it needs to have the name of your file that contains the support ticket code
yep
If you look in your IED program you should see a file explorer windows that shows all the internal files for your bot. The one containing your support ticket needs to be named in the--- from that file name here import ******** , ****** statement ---
You didn't need to rename any files... you only needed to change the fist thing (support_ticket) to the name of that file.
that shows me nothing. lol.
u told me to change the ---
to .
,*
lets see
if it will work now
.
oh wait
nvm
wait one sec
i told you to change THIS...... only this..... and to put the name of that file that contains your support ticket code in that spot with the red square....
OH WAIT
i get it now
this time
it appeared
dif
maybe it will work
YES
IT WORKS
OMG
IT WORKS
IT WORKSSSS
๐
BUT WAIT
ticket
tickets
arent being
created
it shows this
look
what does it mean?
done
i fixed it myself
i love you dude
i hope the best for you
and your family
n god bless you
bro
yo
please
๐ญ
im mad sorry
i can screenshare you
if u want
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.