NadekoBot/NadekoBot.Core/Services/IBotCredentials.cs

53 lines
1.3 KiB
C#
Raw Normal View History

2016-08-20 13:05:57 +02:00
using Discord;
2017-02-13 10:28:49 +01:00
using System.Collections.Immutable;
2016-08-20 13:05:57 +02:00
namespace NadekoBot.Core.Services
2016-08-16 01:38:28 +02:00
{
public interface IBotCredentials
{
ulong ClientId { get; }
2016-08-16 01:38:28 +02:00
string Token { get; }
string GoogleApiKey { get; }
ImmutableArray<ulong> OwnerIds { get; }
2016-08-21 01:01:50 +02:00
string MashapeKey { get; }
2016-08-20 19:13:29 +02:00
string LoLApiKey { get; }
2017-03-05 16:09:54 +01:00
string PatreonAccessToken { get; }
2017-05-23 01:59:31 +02:00
string CarbonKey { get; }
2016-08-16 16:53:38 +02:00
2016-11-15 10:54:56 +01:00
DBConfig Db { get; }
2017-05-27 10:19:27 +02:00
string OsuApiKey { get; }
2016-08-20 13:05:57 +02:00
bool IsOwner(IUser u);
int TotalShards { get; }
string ShardRunCommand { get; }
string ShardRunArguments { get; }
string PatreonCampaignId { get; }
string CleverbotApiKey { get; }
RestartConfig RestartCommand { get; }
}
public class RestartConfig
{
public RestartConfig(string cmd, string args)
{
this.Cmd = cmd;
this.Args = args;
}
public string Cmd { get; }
public string Args { get; }
2016-08-16 01:38:28 +02:00
}
2016-11-15 10:54:56 +01:00
public class DBConfig
{
public DBConfig(string type, string connectionString)
{
this.Type = type;
this.ConnectionString = connectionString;
}
public string Type { get; }
public string ConnectionString { get; }
}
2016-08-16 01:38:28 +02:00
}