mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
fix the issue with "Log is copied from UI"
fix instructions for Google Drive API configuration
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
------------
|
||||
|
||||
Reference in New Issue
Block a user