Giter Club home page Giter Club logo

Comments (5)

1ForeverHD avatar 1ForeverHD commented on May 27, 2024 4

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.

1ForeverHD avatar 1ForeverHD commented on May 27, 2024

Can you provide more details on the specifics of what this does?

from core.

Lucke0051 avatar Lucke0051 commented on May 27, 2024

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.
disc log

(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.

1ForeverHD avatar 1ForeverHD commented on May 27, 2024

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.

Lucke0051 avatar Lucke0051 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.