enable discord commands that already exist 👍

This commit is contained in:
Madpeterz 2021-04-24 22:10:55 +01:00
parent 26cf38b87d
commit ee6685f1b4
2 changed files with 2 additions and 0 deletions

View file

@ -181,6 +181,7 @@ namespace BetterSecondBot.HttpService
.WithWebApi("/chat", m => m.WithController(() => new HTTP_Chat(Bot, Tokens))) .WithWebApi("/chat", m => m.WithController(() => new HTTP_Chat(Bot, Tokens)))
.WithWebApi("/core", m => m.WithController(() => new HTTP_Core(Bot, Tokens))) .WithWebApi("/core", m => m.WithController(() => new HTTP_Core(Bot, Tokens)))
.WithWebApi("/dialogs", m => m.WithController(() => new HTTP_Dialogs(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("/estate", m => m.WithController(() => new HTTP_Estate(Bot, Tokens)))
.WithWebApi("/friends", m => m.WithController(() => new HTTP_Friends(Bot, Tokens))) .WithWebApi("/friends", m => m.WithController(() => new HTTP_Friends(Bot, Tokens)))
.WithWebApi("/funds", m => m.WithController(() => new Http_Funds(Bot, Tokens))) .WithWebApi("/funds", m => m.WithController(() => new Http_Funds(Bot, Tokens)))

View file

@ -15,6 +15,7 @@ namespace Core.Static
reply.Add("chat", typeof(HTTP_Chat)); reply.Add("chat", typeof(HTTP_Chat));
reply.Add("core", typeof(HTTP_Core)); reply.Add("core", typeof(HTTP_Core));
reply.Add("dialogs", typeof(HTTP_Dialogs)); reply.Add("dialogs", typeof(HTTP_Dialogs));
reply.Add("discord", typeof(HTTP_Discord));
reply.Add("estate", typeof(HTTP_Estate)); reply.Add("estate", typeof(HTTP_Estate));
reply.Add("friends", typeof(HTTP_Friends)); reply.Add("friends", typeof(HTTP_Friends));
reply.Add("funds", typeof(Http_Funds)); reply.Add("funds", typeof(Http_Funds));