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