#How do I get a discord bot to reply to a channel after a time limit?

1 messages · Page 1 of 1 (latest)

cerulean zenith
#

So when I make a cooldown of lets say 1 hour, how can I make the bot ping me after that 1 hour?

cerulean zenith
#

When I keep trying to do it, it just wont send

devout flare
#

maybe gives us some error / Code?

cerulean zenith
#

Can't find any

devout flare
#

code? did U try Debugging

#

some Test function / Commands?

cerulean zenith
#

I did try testing with like a smaller cd of a item on a slash but wont do anything

quasi estuary
#

You could use a tasks.loop which do a check every hour at the Database

cerulean zenith
#

I tried using ai but it didnt work that well

quasi estuary
#

To write the Code?

cerulean zenith
#

Yeah

quasi estuary
#

But you also know basic python? We got many here which joined the Server and never wrote a single line of code and only used AI...

#

That is why I ask

cerulean zenith
#

No.. I only know C#

cerulean zenith
quasi estuary
#

You can send the code here or the github. That is why we got a help server here, to help people with there code ^^

cerulean zenith
#

Ok

quasi estuary
#

oh, dont use Python 3.14, the library isnt really supporting it yet.

cerulean zenith
#

Everything works its just not doing the reminder thing.

quasi estuary
#

uninstall 3.14 and install 3.13.

cerulean zenith
devout flare
cerulean zenith
#

Ok

ebon flame
remote sorrel
# cerulean zenith The AI told me to use that

Have to agree with Toothy here, tried using AI for some parts of my bot. different models and with proper context ofc.
they mess things up a lot while appearing reasonable. some even keep making the same mistakes when you tell them not to do x.
So when you're newish to python and bots it'll be impossible to spot or debug. had to stop using them, cause they were driving me mad notlikethis

better use the pycord docs (they are pretty good) and don't hesitate to go for the help channel. there is always someone willing to set you back on track.
Here is a quick overview for the basics:
https://guide.pycord.dev/