Commit 7a880efa authored by Wizkiller96's avatar Wizkiller96

small thingy

parent 0548ae7b
Pipeline #164472448 passed with stage
in 2 minutes and 11 seconds
......@@ -161,7 +161,10 @@ namespace WizBot.Core.Services.Impl
}
private class CredentialsModel
/// <summary>
/// No idea why this thing exists
/// </summary>
private class CredentialsModel : IBotCredentials
{
public ulong ClientId { get; set; } = 123123123;
public string Token { get; set; } = "";
......@@ -191,8 +194,26 @@ namespace WizBot.Core.Services.Impl
public string VotesToken { get; set; }
public string VotesUrl { get; set; }
public string RedisOptions { get; set; }
public string LocationIqApiKey { get; }
public string TimezoneDbApiKey { get; }
public string LocationIqApiKey { get; set; }
public string TimezoneDbApiKey { get; set; }
public string CoinmarketcapApiKey { get; set; }
[JsonIgnore]
ImmutableArray<ulong> IBotCredentials.OwnerIds => throw new NotImplementedException();
ImmutableArray<ulong> IBotCredentials.AdminIds => throw new NotImplementedException();
[JsonIgnore]
RestartConfig IBotCredentials.RestartCommand => throw new NotImplementedException();
public bool IsOwner(IUser u)
{
throw new NotImplementedException();
}
public bool IsAdmin(IUser u)
{
throw new NotImplementedException();
}
}
public bool IsOwner(IUser u) => OwnerIds.Contains(u.Id);
......
......@@ -33,5 +33,6 @@
"VotesUrl": null,
"RedisOptions": null,
"LocationIqApiKey": null,
"TimezoneDbApiKey": null
"TimezoneDbApiKey": null,
"CoinmarketcapApiKey": null
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment