Follow

code sample, screen reader unfriendly 

Really happy with the new bot framework. You can now keep all bot logic away from your actual service and you go to something like

```
var bot = new Bot()
bot.listen(URL, ACCESS_TOKEN)
bot.OnMention(async (data) => {
var game = await hangmanFactory.LoadGame(data.account.acct)
game.play(data.status.content).respond(bot.SendReply(data))
})
```

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!