Comments (5)
That helps a lot, thanks! I'll see what I can come up with using that baseline - I'll look at returning to the issue once the LogService is fully setup.
from core.
Can you provide more details on the specifics of what this does?
from core.
Well all it does is basically log all commands on discord, how I made it was that it took the same string as the chat logs in HD Admin does and just sends it to the Webhook. Though one thing I would like to improve is that if you use multiple commands it adds a field for each command. Instead of sending a message for each command as it currently does.
(This was Lord's idea, he needed it so I made it for him and then I thought that I could also make a feature request here)
from core.
Thanks, I definitely see that working and it looks relatively simple to setup. Does discord or roblox limit the amount of requests you can make within a period of time? If a larger game were to enable this feature (such as an admin house with 10,000+ concurrent users), there's potentially going to be over 50,000 requests/minute. I may explore at 'holding' all the logs a user makes within a short time-frame (such as 1-10 seconds), then firing it off together in one-go.
from core.
Discord limits: 30 requests/minute per channel
Roblox limits: 500 http GET/POST requests per minute
Make sure to make an option to set the limits yourself, at max the Roblox limits, though if any other scripts use HttpService you will need to make sure that script also has some room to post.
Grouping commands and maybe only sending one large message every 30 seconds might be a good idea.
Though Discord embeds can have up to 25 fields, so you might want to send every 25 commands as long as it doesn't step over the limit. If it does then maybe cache it and wait until you can send more. Or for constantly actvie games a last alernative might be to just send them in plain text.
And here is a good guide on Discord webhooks: https://birdie0.github.io/discord-webhooks-guide/structure/embeds.html
from core.
Related Issues (20)
- Setup UI Plan
- Update internal data and user systems before continuing work
- REMOVE THE ICE CREAM VAN (KIDNAP COMMAND) IMPORTANT!! HOT 5
- Nanocoins (N$) (or Nanobux or Nanobucks)
- Update GitHub Publish Action to use the new Open Cloud instead of a standalone dedicated account
- Setup CONTRIBUTING HOT 1
- HD Admin Not Working - Infinite Yield Possible on ReplicatedStorage:WaitForChild("HDAdminSetup") HOT 8
- Messages: an enhanced form of communication
- Finalise Users/Profiles, Globals and Central Server Overhaul
- SystemService and Commands Overhaul
- Update Docs
- Localization
- Setup a Bounty program
- Design Official Logo
- Option to automatically make test players in studio X rank HOT 1
- Produce tutorials
- Convert codebase to typed luau
- Make server and local script command (PLUS EXTRAS)
- HD Admin [STOPPED WORKING RANDOMLY] Infinite Yield Possible on 'ReplicatedStorage:WaitForChild("HDAdminClient")'
- [HD Admin] Type confusion + numerical values in `Contributors` command field results in error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.