From ee6685f1b43e7ee61cd6dc4dd6d2696b8b09b310 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Sat, 24 Apr 2021 22:10:55 +0100 Subject: [PATCH] enable discord commands that already exist :+1: --- Core/HttpService/HttpAsService.cs | 1 + Core/Static/http_commands_helper.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Core/HttpService/HttpAsService.cs b/Core/HttpService/HttpAsService.cs index e1aee8c..d334c4e 100644 --- a/Core/HttpService/HttpAsService.cs +++ b/Core/HttpService/HttpAsService.cs @@ -181,6 +181,7 @@ namespace BetterSecondBot.HttpService .WithWebApi("/chat", m => m.WithController(() => new HTTP_Chat(Bot, Tokens))) .WithWebApi("/core", m => m.WithController(() => new HTTP_Core(Bot, Tokens))) .WithWebApi("/dialogs", m => m.WithController(() => new HTTP_Dialogs(Bot, Tokens))) + .WithWebApi("/discord", m => m.WithController(() => new HTTP_Discord(Bot, Tokens))) .WithWebApi("/estate", m => m.WithController(() => new HTTP_Estate(Bot, Tokens))) .WithWebApi("/friends", m => m.WithController(() => new HTTP_Friends(Bot, Tokens))) .WithWebApi("/funds", m => m.WithController(() => new Http_Funds(Bot, Tokens))) diff --git a/Core/Static/http_commands_helper.cs b/Core/Static/http_commands_helper.cs index ac4f821..3479928 100644 --- a/Core/Static/http_commands_helper.cs +++ b/Core/Static/http_commands_helper.cs @@ -15,6 +15,7 @@ namespace Core.Static reply.Add("chat", typeof(HTTP_Chat)); reply.Add("core", typeof(HTTP_Core)); reply.Add("dialogs", typeof(HTTP_Dialogs)); + reply.Add("discord", typeof(HTTP_Discord)); reply.Add("estate", typeof(HTTP_Estate)); reply.Add("friends", typeof(HTTP_Friends)); reply.Add("funds", typeof(Http_Funds));