#πŸ”’ Need help with / commands

79 messages Β· Page 1 of 1 (latest)

viscid hingeBOT
#

@amber compass

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.

silver aspen
#

dont sync in on_ready

#

also why are there two .event handlers for on_ready

amber compass
#

can you please send me a block so i can update the codeπŸ™

silver aspen
#

don't print your exceptions either

#

and do you have a traceback?

#

also why are you clearing the commands before syncing them? what's the point?

amber compass
amber compass
#

and also if i wanted to add new slash commands for e.g. /ban it wont appear here

silver aspen
silver aspen
amber compass
#

yes but im trying to make one for a bot which will be planned to use in other servers that request this command

silver aspen
#

you're on PC right?

amber compass
silver aspen
amber compass
silver aspen
amber compass
silver aspen
viscid hingeBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
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.

amber compass
#

are you able to see that?

#

there

#

my whole code

silver aspen
amber compass
#

oh i forgot i had that

silver aspen
#

and why is the logging level at DEBUG? you're gonna get loads of debug messages from dpy saying irrelevant things (more verbose output)

#

and also why use the discord logger instead of your own?

amber compass
silver aspen
silver aspen
silver aspen
#

i'm pretty sure it's removing all the commands and then syncing nothing

#

in fact, save .sync() to a variable and print the length of it

amber compass
#

okay so i worte a new code and it still doesnt seem to work

#

i dont really know what to do

silver aspen
amber compass
#

which i have done

silver aspen
#

sync in a command

amber compass
#

OH

silver aspen
#

and also synced = await ___.sync() then print([cmd.name for cmd in synced])

amber compass
#

is this alright ?

silver aspen
#

and where did you find this code

amber compass
amber compass
silver aspen
#

welp

silver aspen
amber compass
amber compass
#

im having a look now

#

the thing is the hello use to work

silver aspen
#

lemme get ready for the morning then i'll pop back in

amber compass
#

yea no worries

amber compass
silver aspen
amber compass
#

i did

silver aspen
#

alright back

#

@amber compass lemme see your updated code

amber compass
#

so ive also came back from a quick cardio session

#

anyway what i tried doing is clearing the commands from the bot because i imagined the only reason the commands wernt working were because they were old

#

what i have gotten from ternminal

#

i genuinely cant figure this problem with these commands

silver aspen
silver aspen
#

!paste

viscid hingeBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
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.

viscid hingeBOT
#
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.