Change the discord.net release branch
This commit is contained in:
parent
5db3187f0d
commit
0e06e85447
3 changed files with 8 additions and 4 deletions
|
@ -21,7 +21,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommandLineParser" Version="2.2.1" />
|
<PackageReference Include="CommandLineParser" Version="2.2.1" />
|
||||||
<PackageReference Include="Discord.Net">
|
<PackageReference Include="Discord.Net">
|
||||||
<Version>2.0.0-beta</Version>
|
<Version>2.0.0-beta2-00984</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.34.0.1226" />
|
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.34.0.1226" />
|
||||||
<PackageReference Include="HtmlAgilityPack" Version="1.8.4" />
|
<PackageReference Include="HtmlAgilityPack" Version="1.8.4" />
|
||||||
|
|
|
@ -23,6 +23,11 @@ namespace Geekbot.net.Lib.Polyfills
|
||||||
return "https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png";
|
return "https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GetDefaultAvatarUrl()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
public Task<IDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null)
|
public Task<IDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|
|
@ -161,14 +161,13 @@ namespace Geekbot.net
|
||||||
var translationHandler = new TranslationHandler(_databaseInitializer.Initialize(), _logger);
|
var translationHandler = new TranslationHandler(_databaseInitializer.Initialize(), _logger);
|
||||||
var errorHandler = new ErrorHandler(_logger, translationHandler, _runParameters.ExposeErrors);
|
var errorHandler = new ErrorHandler(_logger, translationHandler, _runParameters.ExposeErrors);
|
||||||
var reactionListener = new ReactionListener(_redis.Db);
|
var reactionListener = new ReactionListener(_redis.Db);
|
||||||
await _commands.AddModulesAsync(Assembly.GetEntryAssembly());
|
|
||||||
_services.AddSingleton(_commands);
|
|
||||||
_services.AddSingleton<IErrorHandler>(errorHandler);
|
_services.AddSingleton<IErrorHandler>(errorHandler);
|
||||||
_services.AddSingleton<ITranslationHandler>(translationHandler);
|
_services.AddSingleton<ITranslationHandler>(translationHandler);
|
||||||
_services.AddSingleton(_client);
|
_services.AddSingleton(_client);
|
||||||
_services.AddSingleton<IReactionListener>(reactionListener);
|
_services.AddSingleton<IReactionListener>(reactionListener);
|
||||||
_servicesProvider = _services.BuildServiceProvider();
|
_servicesProvider = _services.BuildServiceProvider();
|
||||||
|
await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), _servicesProvider);
|
||||||
|
|
||||||
var handlers = new Handlers(_databaseInitializer, _client, _logger, _redis, _servicesProvider, _commands, _userRepository, reactionListener);
|
var handlers = new Handlers(_databaseInitializer, _client, _logger, _redis, _servicesProvider, _commands, _userRepository, reactionListener);
|
||||||
|
|
||||||
_client.MessageReceived += handlers.RunCommand;
|
_client.MessageReceived += handlers.RunCommand;
|
||||||
|
|
Loading…
Reference in a new issue