✅ add REST endpoints to Discord Bot (Console App)

Im working on a Discord Bot that allows people to generate a receipt and they can then "preview" it, the discord sided code is done, now how would i go on about creating REST Endpoints (prefferably with ASP.NET) in my Console App? (i dont need help with returning the data or anything, i just need to make the app launch the endpoint)
4 Replies
Pobiega
Pobiega10mo ago
What you'd normally do is just create a new ASP project and "move" your bot from a console app into a background service, and add that service to the ASP app you cant easily run an asp site inside a generic host, but you can run a generic host inside an asp site
The Fog from Human Resources
Is there an alternative to ASP.NET on a normal console app then Cause there's really just 1 endpoint
Pobiega
Pobiega10mo ago
There is a http server library called Nancy that you might want to look at
Want results from more Discord servers?
Add your server