1- RiveScript-Python
2- =================
1+ # RiveScript-Python
32
4- INTRODUCTION
5- ------------
3+ ## INTRODUCTION
64
75This is a RiveScript interpreter for the Python programming language. RiveScript
86is a scripting language for chatterbots, making it easy to write
97trigger/response pairs for building up a bot's intelligence.
108
119This library is compatible with both Python 2 and Python 3.
1210
13- USAGE
14- -----
11+ ## USAGE
1512
1613The ` rivescript ` module can be executed as a stand-alone Python script, or
1714included in other Python code. When executed directly, it launches an
1815interactive chat session:
1916
20- python -m rivescript ./brain
17+ python rivescript ./brain
2118
2219When used as a library, the synopsis is as follows:
2320
@@ -40,8 +37,7 @@ while True:
4037The scripts ` example.py ` and ` example3.py ` provide simple examples for using
4138RiveScript as a library for Python 2 and 3, respectively.
4239
43- UTF-8 SUPPORT
44- -------------
40+ ## UTF-8 SUPPORT
4541
4642Version 1.05 adds experimental support for UTF-8 in RiveScript. It is not
4743enabled by default. Enable it by passing a ` True ` value for the ` utf8 `
@@ -67,8 +63,7 @@ are converted (if needed) to Python's `unicode` data type. So, while it's
6763good practice to make sure you're providing Unicode strings to the bot, the
6864library will have you covered if you forget.
6965
70- JSON MODE
71- ---------
66+ ## JSON MODE
7267
7368The ` rivescript ` package, when run stand-alone, supports "JSON Mode", where
7469you communicate with the bot using JSON. This is useful for third-party
@@ -107,13 +102,12 @@ The bot's response will be formatted like so:
107102The ` status ` will be ` ok ` on success, or ` error ` if there was an error. The
108103` reply ` is the bot's response (or an error message on error).
109104
110- LICENSE
111- -------
105+ ## LICENSE
112106
113107```
114108The MIT License (MIT)
115109
116- Copyright (c) 2014 Noah Petherbridge
110+ Copyright (c) 2015 Noah Petherbridge
117111
118112Permission is hereby granted, free of charge, to any person obtaining a copy
119113of this software and associated documentation files (the "Software"), to deal
0 commit comments