#python bad thing

1 messages · Page 1 of 1 (latest)

humble holly
olive abyss
#

the error is pretty simple tho

#

im assuming that bot is supposed to be defined from commands.Bot or something

#

and random is the random module

#

although im not too sure unless u provide the code

humble holly
olive abyss
humble holly
#

Alright

#

Imma send it in a bit

#

its import random as random because i tried to fix the error

olive abyss
#

if u run it normally, youll be fine

#

the code seems correct so

humble holly
#

I indeed run it normally

#

Imma give you the error tomorrow

#

Because I am in bed now

sturdy swift
#

so im guessing this server is only for coding?

olive abyss
lament tusk
#

How did you get here? Is this ther first server you found? 😂

humble holly
#

i just had a buggy instalation...

#

i had to uninstall discord

#

but somehow

#

i did

#

pip uninstall discord

#

and it found more packages under pip uninstall discord.py....

lament tusk
humble holly
#

i put the 3 dots because its weird i uninstall discord package and it found packages under pip uninstall discord.py

#

while it skipped pip uninstall discord as it wasn't installed

humble holly
#

so

#

i followed glowstik's tutorial

#

on disabling and enabling level system

#

but now if i disable

#

the enable command gets disabled aswell

#

🤣

#

this my code if anyone has a fix

#

imma make new helpthread

olive abyss
#

no need

humble holly
#

oh ok

#

can you help?

olive abyss
#

im not familiar with sqlite

humble holly
#

ok

lament tusk
#

Why and how would it get disabled

#

Oh is it the on_message listener returning before passing the event forward to the message command processor?

humble holly
#

no the group

#

and the commands

#

are defined eternally from the listener

lament tusk
#

But on_message stops any command from triggering

#

Unless the event is passed back using process_commands

#

And if thats never reached

#

I assume its never processed

humble holly
#

So I have to use process_commands() for the command to be processed after the event?