buerokratt / Mock-Bot

MIT License
0 stars 0 forks source link

E2E fixes #25

Closed guypritchard closed 2 years ago

guypritchard commented 2 years ago

This is a list of changes I made to get the E2E demo working.

There's something not quite right about the PostMessageAsync method of the chat controller. The original input type was a string - but there were some escaping issues so I fell back on a content scraping approach to get things 'working'. Should this message have a concrete type? Something feels off here.

I added some logging to display the DMR callback messages for the demo, but could be useful for people running locally until we have some actual code doing things with the messages.

I also added the capability to run multiple bots by setting a name in configuration.

...and a few tests.

Look at this one carefully - it was a bit hack and slash to get this going.

github-actions[bot] commented 2 years ago
Package Line Rate Branch Rate Complexity Health
MockBot.Api 91% 63% 70
Summary 91% (250 / 276) 63% (29 / 46) 70

Minimum allowed line rate is 80%