๖̶̶̶ζ͜͡SuperPyroManiac
๖̶̶̶ζ͜͡SuperPyroManiac
Explore posts from servers
SIASapphire - Imagine a framework
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 11/27/2024 in #discordjs-support
Property 'send' does not exist on type *channel types*
Nvm I needed to type guard it with if (!message.channel.isSendable()) return;
4 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Is it? I guess that would make more sense
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
solution for this one will return "Update RPH using the manual LSPDFR installation. You are currently using version: ." Instead of "Update RPH using the manual LSPDFR installation. You are currently using version: TheirCurrentVersion."
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
So this one for example Reg .+Version: RAGE Plugin Hook (?!v1\.106\.1330\.16514).* Solution Update RPH using the manual LSPDFR installation. You are currently using version: {1}.
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
The current method of error.Solution = error.Solution.Replace("{" + i + "}", errmatch.Groups[i].Value); Works, but sometimes it just.. Doesnt for whatever reason
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
The solution has params like {1}, {2} in some cases, so at the part where I find the errors I want to change those to the groups that match
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
We store a bunch of common errors in the database, and this bot will use that information
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
It's a discord bot, it reads logs and checks for common errors
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Yeah
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
So each "error" is bundled with everything I would need
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Regex is stored on my SQL database, when needed I can create a list of all the errors on the regex server including the solution and level of severity
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Oh my bad sorry
public class Error
{
public int ID { get; set; }
public string Regex { get; set; }
public string Solution { get; set; }
public string Level { get; set; }
}
public class Error
{
public int ID { get; set; }
public string Regex { get; set; }
public string Solution { get; set; }
public string Level { get; set; }
}
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
This current method works, but i'd rather use parameters than a string.replace
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
There are no errors
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Yes exactly
35 replies
CC#
Created by ๖̶̶̶ζ͜͡SuperPyroManiac on 10/20/2023 in #help
❔ Convert regex match groups into parameters
Well essentially instead of a string.Replace I want to do a string.Format(error.Solution, match.Groups)
35 replies