forked from Team-Dim/Hyperstellar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2afb302
commit 74085b7
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using Newtonsoft.Json; | ||
|
||
internal class Secrets | ||
internal sealed class Secrets | ||
{ | ||
internal static readonly string Discord; | ||
internal static readonly string Coc; | ||
internal static readonly string s_discord; | ||
internal static readonly string s_coc; | ||
|
||
static Secrets() | ||
{ | ||
string json = File.ReadAllText("secrets.json"); | ||
Dictionary<string, string> dict = JsonConvert.DeserializeObject<Dictionary<string, string>>(json)!; | ||
Discord = dict["discord"]; | ||
Coc = dict["coc"]; | ||
s_discord = dict["discord"]; | ||
s_coc = dict["coc"]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters