#πŸ”’ need help with a bot cog

37 messages Β· Page 1 of 1 (latest)

dim relicBOT
#

@coarse elbow

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.

cobalt nebula
#

?

coarse elbow
#

sorry give me one moment im seeing how this code thing works

cobalt nebula
#

!paste

dim relicBOT
#
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.

coarse elbow
#

ok

#

i tryed everything i could think of

cobalt nebula
#

u still havent asked a question yk

coarse elbow
#

ok how can i fix the code? its saying that i need and await function for the bot.load_extention but when i await it it doesnt load

silent crest
#

you can just await the function inside the on_ready

#

although ppl dont normally do that..

#

you could make a separate main function and load cogs and stuff in it

#

and dont sync your commands in on_ready

#

it can cause ratelimits

coarse elbow
#

Ok thanks for the help

#

I'm new to all this so I'm struggling big timeπŸ˜‚πŸ˜‚

silent crest
#

smt like this

#

and remove all those stuff from the on_ready

silent crest
#

and if youre new to python in general id reccommend you to first learn some basic to intermediate stuff (basic oop) atleast

coarse elbow
#

I took a course but this bot stuff is confusing

silent crest
#

they use async programming, oop, decorators, meta classes and so many other not so easy stuff

coarse elbow
#

Well it's better to try hard and learn rather than giving up😌

silent crest
#

most people reccommend others to know atleast how oop works before diving into the deep hole of bot development but if youre deterministic enough as a beginner and still wanna do bot dev then go ahead

silent crest
#

so enjoy if you can

coarse elbow
#

I will

silent crest
#

unironically thats kinda how i learnt python, through making bots as a beginner

#

took a few years to get it all down

#

but was worth it

#

i guess

dim relicBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.