Lily Wonhalf
Lily Wonhalf
Explore posts from servers
VVALORANT
Created by Lily Wonhalf on 11/25/2023 in #crosshairs
A circle is not noticeable enough to me
So I use 0;p;0;s;1;P;h;0;d;1;f;0;0t;6;0l;2;0v;1;0g;1;0a;1;0f;0;1l;10;1v;1;1g;1;1o;4;1a;1;1m;0;1f;0;A;t;2;o;1;d;1;0b;0;1b;0;S;c;0;s;0.628;o;1 instead. It has the line for leveling, and the circle for those sweet one taps. It's my main crosshair code currently.
18 replies
DIAdiscord.js - Imagine an app
Created by Lily Wonhalf on 10/18/2023 in #djs-questions
Proxying the API
Hayo, I would like to proxy the Discord API so that I can analyze what endpoints I call the most, as well as other data like the response codes I get and stuff. I setup a basic nginx vhost on my computer but it doesn't seem to be working well, and I think the problem is I don't really know what I'm doing lol. If any of you already did that or knows how to do that, could you please give me advice on how I could configure my nginx so it works properly? All I want is for the connection to Discord API to go through a lil nginx vhost on the local machine before going to Discord servers. Here's what I have so far:
server {
listen 80;
server_name discord.local discord.com;

access_log D:\\Programs\\nginx\\logs\\discord.local-access.log;
error_log D:\\Programs\\nginx\\logs\\discord.local-error.log;

location / {
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $http_host;
proxy_pass https://discord.com;
}
}
server {
listen 80;
server_name discord.local discord.com;

access_log D:\\Programs\\nginx\\logs\\discord.local-access.log;
error_log D:\\Programs\\nginx\\logs\\discord.local-error.log;

location / {
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $http_host;
proxy_pass https://discord.com;
}
}
With discord.local, it gives me an error 421 With discord.com it simply does not respond. Thank you!
4 replies
SIASapphire - Imagine a framework
Created by Lily Wonhalf on 10/8/2023 in #sapphire-support
Allow or prevent command execution
I found this file in the framework: https://github.com/sapphiredev/framework/blob/main/src/listeners/application-commands/chat-input/CorePreChatInputCommandRun.ts And it very much looks like that's the one responsible for letting commands be executed or not. I want to accomplish something similar, but if I create my own listener for the same event, it will not prevent the commands that are being authorized by the core listener, will it? How would that work? And how can I accomplish what I want? Thank you!
53 replies
SIASapphire - Imagine a framework
Created by Lily Wonhalf on 8/20/2023 in #sapphire-support
Passing a new parameter to commands
Heyo! I am converting my bots to Sapphire, and on one of them, I pass the entity manager of my ORM to each command as I call them so I don't create too many (or else it creates a memory leak). So basically, I create an entity manager every time there's an event, instead of every time I need one. That worked fine before Sapphire, because I was the one calling my commands. But now, I am not anymore! So I thought about a way to do it. I could extend the container and add an "em" key to it. Then, iirc, there's an event Sapphire emits before an application command is called. I could plug into that event to initialize the entity manager in the container, and destroy it after the command is done (if there's an event for that too). Do you think that's a good approach? If not, what would you suggest? Thank you!
118 replies