#Bot Vote tracking isnt working

1 messages · Page 1 of 1 (latest)

grave creek
#

read the error.....

grave creek
#

Read the error

#

Idk

#

I dont use stuff like that

toxic jetty
#

Ofc it will not work

#

You are creating the task before you create the pool

#

How were you expecting that to work

toxic jetty
#

Wdym by it doesn't work? Does the event not fire?

#

If it fires, print2 should be printed

#

Also, are you sure that's an event

#

What library are you using

#

Mhm

#

Or wait

#

Don't waste your vote

#

Do you still use this piece of code or no

#

First lets try to sort out obvious errors

#

Then try and vote

#

Cuz you can only vote once in 12hrs and it becomes a mess to debug

#

And those are?

#

Ok

#

Is vote_reminder_check an event

#

I don't think that's how it is to be implemented

#

Yeah this. Is this an event the library dispatches? Or is it something you want to loop forever?

#

Ok

#

Cuz i don't remember vote_reminder_check being an event

#

I think you should be using a task loop that runs every 5 mins

#

How else were you gonna get votes 💀

urban hill
#

problem is nobody is voting for this shit

toxic jetty
urban hill
#

what do u think i meant

#

it wasn't meant to be taken as serious critique

toxic jetty
#

Uhh

Change

@bot.event
async def vote_reminder_check():

To

@tasks.loop(minutes=5)
async def vote_reminder_check():
#

Don't have 2 things with same names

urban hill
#

it was a joke lil bro

toxic jetty
#

It's gonna break

#

Have this code in that loop

#

Alr

#

No

#

Did you implement the dbl client?

toxic jetty
#

Ok i have to go

#

Bye for now