Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.6 KB

readme.md

File metadata and controls

44 lines (35 loc) · 1.6 KB

Get Started

Here's a quick code sample:

import bernard

def main():
    print('Not so fast!')

if __name__ == '__main__':
    main()

Well I'm sorry, this is a trick. No 3-liner can ever cover how to make a bot with BERNARD. You have to bear in mind that creating bots is a brand new craft that you need to learn. When we asked COBOL developers to build websites, it was a disaster. Do you remember when JavaScript was only used to make snow fall at Christmas time? In fact, it took up until just a few years ago to find out what the required skills, and tools, to build a website were. The very same thing is happening with bots: it's a brand new craft that nobody has mastered yet. It's up to all of us to build it!

This introduction to BERNARD is a walk-through the basic features of the framework and intends to give you the techniques that BERNARD authors think are right. From here on, concepts and theory will be explained as general truth but keep in mind that it's just a point of view.

Summary

There is several parts, which are all pretty important and most of the concepts and techniques here are unrelated to most things you've ever seen in web development. You might want to skip the "Finite State Machine" part if you already know what it is. Also if you want to get your hands on, you can start by the "Simple Bot" first and read things backward if you don't understand it instinctively.

  1. Concepts
  2. Finite-state Machine
  3. Installation
  4. Start a project
  5. Number bot
  6. Patterns