Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

✨ Chat log/WR chat log for any demo #5

wants to merge 1 commit into from

Conversation

Hona
Copy link
Owner

@Hona Hona commented Dec 29, 2023

No description provided.

Comment on lines +65 to +75
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;
}
Copy link
Owner Author

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",
Copy link
Owner Author

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.

Comment on lines +22 to +29
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
);
Copy link
Owner Author

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");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config?

@Hona Hona mentioned this pull request Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant