Skip to content

Commit 59c0fd2

Browse files
committed
Add contributing information
1 parent 3663ca1 commit 59c0fd2

8 files changed

Lines changed: 50 additions & 20 deletions

File tree

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Contributing
2+
3+
Interested in contributing to RiveScript? Great!
4+
5+
First, check the general contributing guidelines for RiveScript and its primary
6+
implementations found at <http://www.rivescript.com/contributing> - in
7+
particular, understand the goals and scope of the RiveScript language and the
8+
style guide for the Python implementation.
9+
10+
# Quick Start
11+
12+
Fork, then clone the repo:
13+
14+
```bash
15+
$ git clone [email protected]:your-username/rivescript-python.git
16+
```
17+
18+
Make your code changes and test them by using the built-in interactive mode of
19+
RiveScript, e.g. by running `python rivescript /path/to/brain`.
20+
21+
Make sure the unit tests still pass. I use Nosetests for the unit testing, so
22+
you'll need to install that (you can install it in a virtualenv if it's easier)
23+
and run the command `nosetests`.
24+
25+
Use `pyflakes` and clean up any error messages reported in the Python sources.
26+
27+
Push to your fork and [submit a pull request](https://github.com/kirsle/rivescript-python/compare/).
28+
29+
At this point you're waiting on me. I'm usually pretty quick to comment on pull
30+
requests (within a few days) and I may suggest some changes or improvements
31+
or alternatives.
32+
33+
Some things that will increase the change that your pull request is accepted:
34+
35+
* Follow the style guide at <http://www.rivescript.com/contributing>
36+
* Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Noah Petherbridge
3+
Copyright (c) 2015 Noah Petherbridge
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
RiveScript-Python
2-
=================
1+
# RiveScript-Python
32

4-
INTRODUCTION
5-
------------
3+
## INTRODUCTION
64

75
This is a RiveScript interpreter for the Python programming language. RiveScript
86
is a scripting language for chatterbots, making it easy to write
97
trigger/response pairs for building up a bot's intelligence.
108

119
This library is compatible with both Python 2 and Python 3.
1210

13-
USAGE
14-
-----
11+
## USAGE
1512

1613
The `rivescript` module can be executed as a stand-alone Python script, or
1714
included in other Python code. When executed directly, it launches an
1815
interactive chat session:
1916

20-
python -m rivescript ./brain
17+
python rivescript ./brain
2118

2219
When used as a library, the synopsis is as follows:
2320

@@ -40,8 +37,7 @@ while True:
4037
The scripts `example.py` and `example3.py` provide simple examples for using
4138
RiveScript as a library for Python 2 and 3, respectively.
4239

43-
UTF-8 SUPPORT
44-
-------------
40+
## UTF-8 SUPPORT
4541

4642
Version 1.05 adds experimental support for UTF-8 in RiveScript. It is not
4743
enabled 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
6763
good practice to make sure you're providing Unicode strings to the bot, the
6864
library will have you covered if you forget.
6965

70-
JSON MODE
71-
---------
66+
## JSON MODE
7267

7368
The `rivescript` package, when run stand-alone, supports "JSON Mode", where
7469
you 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:
107102
The `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
```
114108
The MIT License (MIT)
115109
116-
Copyright (c) 2014 Noah Petherbridge
110+
Copyright (c) 2015 Noah Petherbridge
117111
118112
Permission is hereby granted, free of charge, to any person obtaining a copy
119113
of this software and associated documentation files (the "Software"), to deal

rivescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# The MIT License (MIT)
66
#
7-
# Copyright (c) 2014 Noah Petherbridge
7+
# Copyright (c) 2015 Noah Petherbridge
88
#
99
# Permission is hereby granted, free of charge, to any person obtaining a copy
1010
# of this software and associated documentation files (the "Software"), to deal

rivescript/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# The MIT License (MIT)
44
#
5-
# Copyright (c) 2014 Noah Petherbridge
5+
# Copyright (c) 2015 Noah Petherbridge
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

rivescript/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# The MIT License (MIT)
44
#
5-
# Copyright (c) 2014 Noah Petherbridge
5+
# Copyright (c) 2015 Noah Petherbridge
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

rivescript/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# The MIT License (MIT)
44
#
5-
# Copyright (c) 2014 Noah Petherbridge
5+
# Copyright (c) 2015 Noah Petherbridge
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

rivescript/rivescript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# The MIT License (MIT)
44
#
5-
# Copyright (c) 2014 Noah Petherbridge
5+
# Copyright (c) 2015 Noah Petherbridge
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)