Some example projects of how to use Noobot
Based on the Noobot.Runner project built on TopShelf. This allow you to run the application as a console app (great for debugging) and also as a Windows Service (for longer running sessions).
This has been built after some users asking if it would work in a Web context. Not too different from the Console/Service example.
Noobot requires you to supply an implemention of IConfiguration - this defines all the middleware and plugins you wish to be used in the Noobot session. Each of the example projects come with an ExampleConfiguration.cs
class to show how you can use ConfigurationBase
if you want to use the syntactic sugar Noobot supplies out of the box.
Noobot, along with some middleware/plugins will rely on Config entries to be supplied. We have included an ExampleJsonConfigReader
to show how you could read config out of a file. We have purposely not included a Reader implementation as we don't want users to think they have to store account details in Json (etc).
Noobot accepts an optional ILog
implementation, if one isn't supplied then Noobot doesn't log. You will find in our examples we are supplying our own implementations of ILog to give us the power of outputting this log on screen in different ways.