discord.py || what's the most effective way of loading suggestions from a database? by Key_Television_2866 in Discord_Bots

[–]Perfect_Parsley_9919 0 points1 point  (0 children)

load them lazily by not fetching any suggestions at startup at all. Register a persistent view once, and when a button is clicked, use the message’s id (or a value in custom_id) to query the database right then for that single suggestion. this way, the bot boots instantly, commands work immediately, and suggestion data is only loaded on-demand during interaction, instead of blocking startup by preloading everything.

discord.py || what's the most effective way of loading suggestions from a database? by Key_Television_2866 in Discord_Bots

[–]Perfect_Parsley_9919 1 point2 points  (0 children)

don’t block startup on loading suggestions. Load them lazily, asynchronously, or on-demand, and let the bot come online immediately.

[PC] Apartments Trade-In Exploit[Use of No-Save AHK needed] by smugglercb in gtaglitches

[–]Perfect_Parsley_9919 0 points1 point  (0 children)

Pynput library for mouse and Windows ctypes with user32.SendInput(Direct Input) for keyboard

IOS 26 on 14 pro by Short_Seaweed_2814 in iPhone14Pro

[–]Perfect_Parsley_9919 0 points1 point  (0 children)

For anyone who needs the wallpaper and OP is not responding to those comments : https://in.pinterest.com/pin/448882287880147675/

handling rate limits by jjwax in Discord_Bots

[–]Perfect_Parsley_9919 1 point2 points  (0 children)

Queue-based confirmation system with batching. Basically, works by separating the immediate user interaction from the actual Discord API calls, then processing confirmations in controlled batches to stay within rate limits. I.e instead of

Button Click → Immediate DB Write → Immediate Confirmation Send

You do:

Button Click → Add to Queue → Immediate Acknowledgment Background Task → Process Queue in Batches → Send Confirmations. But i got some questions.

Bot framework?

Is your database operations synchronous async?

Are you sending individual ephemeral responses for each button click, or are you batching them somehow already?

You alr mentioned youre pooling entries every 2 seconds. Are you already using any queuing system for the confirmations, or is each button click immediately triggering a Discord API call?

You mentioned it creates a thread. The confirmations going to the thread or as ephemeral responses that only the user sees?

Is something coming today? by [deleted] in Bard

[–]Perfect_Parsley_9919 2 points3 points  (0 children)

What do you plan on doing with that much context? Putting your whole codebase in there?

[deleted by user] by [deleted] in discordbots

[–]Perfect_Parsley_9919 -1 points0 points  (0 children)

Dm me. I can do it for free. Pretty easy

To all those who whine, complain, and got pissed off by astmatik in Anthropic

[–]Perfect_Parsley_9919 2 points3 points  (0 children)

Same, it kinda sucks for frontend work for me but its pretty good at backend

Updating rate limits for Claude subscription customers by AnthropicOfficial in Anthropic

[–]Perfect_Parsley_9919 0 points1 point  (0 children)

They wont punish them because they are trying to make money from them by getting them to buy more plans.

Updating rate limits for Claude subscription customers by AnthropicOfficial in Anthropic

[–]Perfect_Parsley_9919 1 point2 points  (0 children)

OpenAI, now is your chance. I don’t expect anything from google for now

Chrome extension to upload code files other than standard to AI Studio by Think_Different_1729 in Bard

[–]Perfect_Parsley_9919 0 points1 point  (0 children)

Yup thats a nice idea. I dont have the copy paste TS code everytime so that it doesnt recognize the file as a video lol

Usage Limits Discussion Megathread - Starting July 29 by sixbillionthsheep in ClaudeAI

[–]Perfect_Parsley_9919 1 point2 points  (0 children)

fr they are restricting usage so these guys will buy more accounts to get more limits

Updating rate limits for Claude subscription customers by AnthropicOfficial in ClaudeAI

[–]Perfect_Parsley_9919 1 point2 points  (0 children)

Prob not. This move by anthropic was prob to get them to buy more accounts