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
|
|
|
|
|
2017-10-13 06:14:54 +02:00
|
|
|
|
namespace NadekoBot.Core.Services
|
2016-08-16 01:38:28 +02:00
|
|
|
|
{
|
|
|
|
|
public interface IBotCredentials
|
|
|
|
|
{
|
2016-10-09 04:26:14 +02:00
|
|
|
|
ulong ClientId { get; }
|
|
|
|
|
|
2016-08-16 01:38:28 +02:00
|
|
|
|
string Token { get; }
|
|
|
|
|
string GoogleApiKey { get; }
|
2017-04-10 03:14:52 +02:00
|
|
|
|
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-24 03:32:48 +02:00
|
|
|
|
|
2016-08-20 13:05:57 +02:00
|
|
|
|
bool IsOwner(IUser u);
|
2017-06-19 15:42:10 +02:00
|
|
|
|
int TotalShards { get; }
|
2017-06-21 23:12:24 +02:00
|
|
|
|
string ShardRunCommand { get; }
|
|
|
|
|
string ShardRunArguments { get; }
|
2017-07-05 11:43:36 +02:00
|
|
|
|
string PatreonCampaignId { get; }
|
2017-07-20 22:58:19 +02:00
|
|
|
|
string CleverbotApiKey { get; }
|
2017-09-27 08:32:33 +02:00
|
|
|
|
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-08-24 03:32:48 +02:00
|
|
|
|
|
2016-11-15 10:54:56 +01:00
|
|
|
|
public class DBConfig
|
2016-08-24 03:32:48 +02:00
|
|
|
|
{
|
2017-09-27 08:32:33 +02:00
|
|
|
|
public DBConfig(string type, string connectionString)
|
2016-08-24 03:32:48 +02:00
|
|
|
|
{
|
|
|
|
|
this.Type = type;
|
2017-09-27 08:32:33 +02:00
|
|
|
|
this.ConnectionString = connectionString;
|
2016-08-24 03:32:48 +02:00
|
|
|
|
}
|
|
|
|
|
public string Type { get; }
|
|
|
|
|
public string ConnectionString { get; }
|
|
|
|
|
}
|
2016-08-16 01:38:28 +02:00
|
|
|
|
}
|