Om Lanke

Results 12 comments of Om Lanke

Actually, why not use LIMIT in the SQL query?

And skip the not enough users part

Its easy tbh. Check if the url of the submission starts with "https://i.redd.it/" This is how i do in one of my bots- ```py async for submission in hot: if...

No. At least i haven't successfully found a way. You can send the `permalink` of the submission and discord will natively embed it. The videos never played on my laptop...

Yeah i can't seem to find a method that adds video links to embed. Try setting it as the url during definition of the embed. I'll check and come back

A python equivalent will not be nearly as close as the C one in terms of performance. Live audio is a heavy load and has to be low latency.

> > A python equivalent will not be nearly as close as the C one in terms of performance. Live audio is a heavy load and has to be low...

> and also this largely uses python stdlib modules which from the seems of things are written in C in many places. Possible to do actual performance tests?

Hmm that sure is a difference. Use `time.perf_counter_ns()` instead of `time.time()`. The result will be more accurate and will return ns instead of s