-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Chat log/WR chat log for any demo #5
base: main
Are you sure you want to change the base?
Conversation
private const ulong steamid64ident = 76561197960265728; | ||
|
||
public static ulong UsteamidToCommid(string usteamid) | ||
{ | ||
usteamid = usteamid.Replace("[", "").Replace("]", ""); | ||
|
||
string[] usteamidSplit = usteamid.Split(':'); | ||
ulong commid = ulong.Parse(usteamidSplit[2]) + steamid64ident; | ||
|
||
return commid; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a common library?
{ | ||
var processStartInfo = new ProcessStartInfo | ||
{ | ||
FileName = "parse_demo.exe", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to config. locally this will be an exe, hosted this will probably be linux, not an EXE and different dir maybe.
public record Classes( | ||
[property: JsonPropertyName("0")] int? _0, | ||
[property: JsonPropertyName("3")] int? _3, | ||
[property: JsonPropertyName("9")] int? _9, | ||
[property: JsonPropertyName("4")] int? _4, | ||
[property: JsonPropertyName("1")] int? _1, | ||
[property: JsonPropertyName("7")] int? _7 | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to a dictionary
|
||
var downloadStream = httpClient.GetStreamAsync(url, cancellationToken); | ||
|
||
var zipFilePath = Path.Join(Environment.CurrentDirectory, "demos", demo.Overview.FileName + ".zip"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config?
No description provided.