fix the issue with "Log is copied from UI"

fix instructions for Google Drive API configuration
This commit is contained in:
13xforever
2019-03-01 14:06:55 +05:00
parent 8d4bed5d5c
commit 077ccb3207
2 changed files with 5 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ namespace CompatBot.Utils.ResultFormatters
private static void BuildInfoSection(DiscordEmbedBuilder builder, NameValueCollection items)
{
var systemInfo = items["build_and_specs"] ?? "";
var valid = systemInfo.StartsWith("RPCS3") && systemInfo.Count(c => c == '\n') == 2;
var valid = systemInfo.StartsWith("RPCS3") && systemInfo.Count(c => c == '\n') < 3;
if (!valid)
{
systemInfo = string.Join('\n', systemInfo.Split('\n', 3).Take(2)).Trim();

View File

@@ -18,13 +18,15 @@ Runtime Requirements
* [.NET Core 2.1 Runtime](https://www.microsoft.com/net/download/windows) or newer for compiled version
* Optionally Google API credentials to access Google Drive:
* Create new project in the [Google Cloud Resource Manager](https://console.developers.google.com/cloud-resource-manager)
* Select the project and open [API & Services Credendials](https://console.developers.google.com/apis/credentials)
* Select the project and enable [Google Drive API](https://console.developers.google.com/apis/library/drive.googleapis.com)
* Open [API & Services Credendials](https://console.developers.google.com/apis/credentials)
* Create new credentials:
* **Service account** credentials
* New service account
* Role select **Project > Viewer**
* Key type **JSON**
* **Create** will generate a configuration file, save it as `CompatBot/Properties/credentials.json`
* **Create** will generate a configuration file
* Save said configuration file as `CompatBot/Properties/credentials.json`
How to Build
------------