NadekoBot/NadekoBot.Core/Services/IBotCredentials.cs

53 lines
1.3 KiB
C#
Raw Normal View History

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.Core.Services
2016-08-15 23:38:28 +00:00
{
public interface IBotCredentials
{
ulong ClientId { get; }
2016-08-15 23:38:28 +00:00
string Token { get; }
string GoogleApiKey { get; }
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-20 11:05:57 +00: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-15 23:38:28 +00:00
}
2016-11-15 09:54:56 +00: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-15 23:38:28 +00:00
}