Skip to content

Add .gitignore and doc strings #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d48d0ec
Convert to structure for making a simplistic story from a database
Jul 17, 2016
14681c2
Add .gitignore and doc strings
Jul 18, 2016
3609afe
Improve exception reporting
Jul 18, 2016
175bb9b
Add Django and django_extensions to requirements
Jul 18, 2016
4c0335b
Remove db.sqlite3 from .gitignore
Jul 19, 2016
c4ef9c6
Add additional options for gender.
Jul 19, 2016
974f269
Use Action class to replace methods defined directly on Command.
Aug 5, 2016
2e8be87
Add GroupCreationAction. Provide alternate wordings for several Actio…
Aug 8, 2016
1a2fa7c
Add GroupCreation, GroupSpread, and GroupDecay Actions
Aug 11, 2016
d7389d5
Fix bug in selection of action_class during Command.construct_message()
Aug 11, 2016
0e09ea2
Clean up check of final character in each 'verb' and add LeaveGroupAc…
Aug 13, 2016
01107bc
Merge branch 'feature/django-bot' into master
Aug 13, 2016
c579734
Broaden appropriate Django versions and fix a couple bugs
Aug 13, 2016
552a969
Fix bug in create_from_through_table()
Aug 13, 2016
95838b9
Tighten GenericActionTests.test_verb_structure() to confirm all 'VERB…
Aug 13, 2016
c766bb6
Enable multi-sentence tweets and add tests for seed data.
Aug 13, 2016
0029201
Uncomment an important line...
Aug 13, 2016
c82e425
Add JoinGroupAction.
Sep 4, 2016
59b29c3
Replace set with list in JoinGroupAction.get_kwargs()
Sep 4, 2016
1abb5a8
Fix JoinGroupAction.get_kwargs() to use names of objects rather than …
Sep 4, 2016
f3ff544
Add basic admin site and split action tests by action class. Add basi…
Sep 12, 2016
6cc963c
Add tests and factories.
Sep 14, 2016
87ef4ea
Turn off DEBUG. Debug JoinGroupAction. Add unit tests and <model>.__s…
Sep 15, 2016
f9bd670
Add tests, directories for static files, and use of dotenv to disting…
Sep 20, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
secrets.py
.*
!.gitignore
*.pyc
db.sqlite3
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# hello-world-bot
A template for creating a Twitter bot that tweets lines of a text one at a time.
This is a simple Twitter bot that constructs and tweets randomly-generated
fiction one sentence at a time.

This is a template for the Build-a-Bot workshop at PyDX Conf 2015 in Portland, OR.
It originated from the template for the Build-a-Bot workshop at PyDX Conf 2015
in Portland, OR.

(or whoever happens to want to make their own Twitter bot for the first time)

You'll need to add a text file to book.txt and a secrets.py file that contains a consumer_key, consumer_secret, access_key, and access_secret for authorization with Twitter.

Detailed setup instructions are at https://tpinecone.gitbooks.io/build-a-bot-workshop/content/

An example lives at https://twitter.com/flatlandbot
The character and place names are drawn from multiple sources and do not
constitute endorsement or critique of any of the original works.
1 change: 0 additions & 1 deletion book.txt

This file was deleted.

25 changes: 0 additions & 25 deletions book_manager.py

This file was deleted.

29 changes: 0 additions & 29 deletions bot.py

This file was deleted.

10 changes: 10 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "twitterbot.settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Django==1.9.7
nltk==3.0.5
oauthlib==1.0.3
six==1.9.0
tweepy==3.4.0
tweepy==3.4.0
factory-boy>=2.6
python-dotenv>=0.3,<0.4
2 changes: 2 additions & 0 deletions resources/collected_static_files/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Empty file added story/__init__.py
Empty file.
Loading