Karmator
Karmator copied to clipboard
Improve onboarding for a minimal hello world bot.
bwbaugh has been working on trying to get up a minimal hello world bot, and a couple of issue that they ran into were:
- ping and channels were not already in the bot core
- Had to setup a full router with ^ and tha was confusing, the system supports nested router so should be able to provide a pre-existing router with the basics setup (auth, channel join, ping, etc) and then user can extend it.
https://github.com/revnull/haskell-irc-bot/blob/master/IRCBot.hs
Is a good example of an extremely minimal setup for a bot.
This seems like something that would be doable, leave the bot core as it is, but have/implement a 2nd layer on top of it, a sorta convience layer that has all sorts of bootstrap issues covered/taken care of (such as config file loading, channel support, auth, ping, etc) and then something really simple like:
karmaBot (server) (auth) (user-route hooks)
for the actual hello-world bootstrap step.