Message from @Sapharanth
Discord ID: 647534822641631264
@thelizard i sent a PR already
yes I know I was just telling you "a less potato way" to do it
you can easily access parts of a URL by using the `System.Uri` class
i debugged by moving part of replacing urls to a static function and called it in program.cs
because of your comments
when I used to maintain the bot I was also the one running here
so I usually had two instances running
deactivated the prod instance and just had the live bot running on my machine
and posted links in some test discord server
if you want to maintain the bot you should be the one running it, it makes it all much easier
Also, .NET Regex is not Perl REGEX
I usually test regex on http://regexstorm.net/tester
i tested it there too
why mention it? is the regex wrong?
@thelizard those comments arent mine btw, the diff shows more changes than it should
cuz i moved part of function to new function
ah fair enough
No I don't know if the regex is wrong
I can't run it rn
the fix was basically
```
else if (result.RequestMessage.RequestUri.Query.Contains("rdtUrl"))
{
var query = HttpUtility.ParseQueryString(result.RequestMessage.RequestUri.Query);
replaceMessage = replaceMessage.Replace(match.Value, "https://www.aliexpress.com" + (new Uri(HttpUtility.UrlDecode(query["rdtUrl"]))).AbsolutePath);
}```
Ok I think this is the 9V2A charging it was taking about
I dunno
>6.3V
that aint 9V chief
screams in usb-standard
Yeah I'm not 100% sure what's going on there
speaking about usb ammeters
my usb-c one came in and it doesnt read out properly
time to decypher the pdf
Well this is charging at 16W if my numbers are correct
i think QC3 is variable voltage
QC2/usb-pd is only specified voltages
@Windatica what do you mean read out properly?
alright i fucked up
i dont have a usb-c power bank but it seems that it only shows stats in one direction
meaning the best way to use it is to plug it into a usb-c power bank and then plug a wire into the meter
bot works now too