Commit graph

266 commits

Author SHA1 Message Date
Jaiden Mispy
0292264613 slightly less paranoid about including people 2014-12-16 10:59:58 +11:00
Jaiden Mispy
15f893d597 3.0.6 2014-12-16 08:29:35 +11:00
Jaiden Mispy
f0c440b884 Test for and fix username case inconsistencies 2014-12-16 08:29:07 +11:00
Jaiden Mispy
e3a4d63847 Merge pull request #62 from Stawberri/reply_log_entries
Fixed log entries for replies
2014-12-16 07:27:38 +10:00
Jaiden Mispy
b67b8dabb5 Sleep longer before reconnect 2014-12-15 08:55:20 +11:00
Stawberri
f49aea4a52 Fixed log entries for replies
I didn't notice that log entries were also manually adding
meta.reply_prefix on.
2014-12-14 02:48:45 -08:00
Jaiden Mispy
b460b73392 Update tests to account for bot detection 2014-12-13 00:51:22 +11:00
Jaiden Mispy
03c8491d57 Less sensitive bot detection 2014-12-13 00:44:26 +11:00
Jaiden Mispy
4d4131e185 3.0.5 2014-12-13 00:10:57 +11:00
Jaiden Mispy
64c1aa411c Add default delay range, configure check 2014-12-12 22:53:55 +11:00
Jaiden Mispy
730f833d6d fix README quote inconsistency 2014-12-12 22:53:55 +11:00
Jaiden Mispy
bb5b9e8025 Merge pull request #58 from Stawberri/conditional_reply_prefix
Conditional reply_prefix for replies
2014-12-12 20:36:29 +10:00
Jaiden Mispy
8080fcd83d Merge pull request #57 from Stawberri/remove_reply_prefix_examples
Removed reply_prefix from examples
2014-12-12 20:35:45 +10:00
Stawberri
e6cefa0890 conditional reply_prefix for replies
Reply prefix is now only added if the recipient's screen_name isn't
already in the tweet text.
2014-12-11 20:13:53 -08:00
Stawberri
3a350526b4 Removed reply_prefix from examples
These methods now automatically add in reply_prefix in v3.
2014-12-11 20:01:57 -08:00
Jaiden Mispy
0441f1b9f7 README tweaks 2014-12-11 22:19:46 +11:00
Jaiden Mispy
47c418340d add note to readme about regenning models 2014-12-11 22:16:46 +11:00
Jaiden Mispy
371dcb24b8 Merge pull request #54 from Stawberri/archive_read_encoding
load previous archive with utf-8 encoding
2014-12-10 21:24:12 +10:00
Stawberri
6e97383fff load previous archive with utf-8 encoding
Copied from model.rb's File.read
2014-12-09 14:25:13 -08:00
Jaiden Mispy
0a915b0a30 Merge pull request #51 from Stawberri/move_gitignore
Renamed skeleton/.gitignore to gitignore
2014-12-10 04:28:58 +10:00
Stawberri
de73f4778b Renamed skeleton/.gitignore to gitignore
Did you know? The .gitignore inside skeleton/ was actually affecting
twitter_ebooks's repo. This fixes that by moving it for twitter_ebooks,
and moving it back when people make their repositories!
2014-12-08 21:46:27 -08:00
Jaiden Mispy
cb4c09b744 3.0.4 2014-12-08 23:31:44 +11:00
Jaiden Mispy
548260f9dd Spec test too 2014-12-08 23:29:42 +11:00
Jaiden Mispy
504297bf73 On second thought, that's probably better 2014-12-08 23:28:50 +11:00
Jaiden Mispy
798451518b Merge pull request #47 from Stawberri/fix_direct_messages
Fix direct messages
2014-12-08 22:28:24 +10:00
Jaiden Mispy
6f1cd0b795 Merge pull request #46 from Stawberri/fix_reply_options
Fix reply options
2014-12-08 22:27:54 +10:00
Stawberri
56ddb45b61 Fix direct messages
Someone renamed on_message to on_direct_message in bot.rb, but forgot to
update it in the template.

It used to be on_message in the template, so for less confusion, I think
it's preferable to just rename on_direct_message back. :o
2014-12-08 04:27:41 -08:00
Stawberri
0e9f7d6881 Fix reply options
Whoever wrote Bot.reply forgot to pass on options it received for
replies!
2014-12-08 04:21:55 -08:00
Jaiden Mispy
9d610a6d58 on_message => on_direct_message in README 2014-12-08 23:16:55 +11:00
Jaiden Mispy
db903e2e2b Add start/console commands to help 2014-12-08 23:16:47 +11:00
Jaiden Mispy
f667a7a621 Merge pull request #43 from Stawberri/meta_media_uris
meta.media_uris
2014-12-08 15:56:45 +10:00
Jaiden Mispy
56f83c4c18 Merge pull request #44 from Stawberri/gitignore_without_asterisk
Remove * in default .gitignore
2014-12-08 15:56:16 +10:00
Stawberri
83e1bb1aef Remove * in default .gitignore
corpus/* matches all files in the first level directory inside corpus,
so it would match corpus/lala.txt but not corpus/secret/lala.txt.

corpus/ matches the directory corpus itself, meaning that corpus/ and
everything inside of it shouldn't be uploaded.

corpus/** matches everything inside corpus, including contents of
subdirectories, while still allowing corpus/ itself to be uploaded. This
solves the initial problem I posed (with corpus/secret/lala.txt), but it
just feels tidier to just remove the entire folder.
2014-12-07 21:43:59 -08:00
Stawberri
d94ff3d36b Better optional parameter integration
Apparently I'm dumb and didn't know about equal signs in parameters.
2014-12-06 23:31:58 -08:00
Stawberri
3c54c9a017 meta.media_uris
Adds media_uris to tweet meta, which returns an array of strings
containing the URIs of media inside your tweet.
2014-12-06 21:57:51 -08:00
Jaiden Mispy
a2ca0da967 3.0.3 2014-12-06 22:37:10 +11:00
Jaiden Mispy
003d0668e9 Merge pull request #41 from Stawberri/regex_rt
Regex soft-retweet detection
2014-12-06 21:35:39 +10:00
Stawberri
6bc89cd4fb Switched to .match for matching
Mispy taught me something about ruby precedence today!
2014-12-06 03:29:29 -08:00
Jaiden Mispy
0f735bc105 Add missing oauth dependency (fixes #40) 2014-12-06 22:25:40 +11:00
Stawberri
c4ba9e139f Regex soft-retweet detection
I added a regex to detect 'RT @' anywhere in the content of a tweet, in
case someone hides a RT in the middle of a tweet! As a bonus, it also
detects a bunch of different types of quotes as well as other things
people might use, like 'via,' 'by,' and 'from'!
2014-12-06 01:38:38 -08:00
Jaiden Mispy
fe34c94e04 Update README.md 2014-12-05 23:43:58 +10:00
Jaiden Mispy
92d3c53b79 Don't need BOT_NAME in there 2014-12-06 00:24:32 +11:00
Jaiden Mispy
141e43719a and the skeleton 2014-12-06 00:17:54 +11:00
Jaiden Mispy
be0fee67e2 remove bot. references in README 2014-12-06 00:16:55 +11:00
Jaiden Mispy
458b94a4c3 3.0.2 - Handle rate limitation in archiver 2014-12-06 00:07:49 +11:00
Jaiden Mispy
b738f1fe3a 3.0.1 2014-12-05 23:50:59 +11:00
Jaiden Mispy
5617544a30 Make sure we really have the right username 2014-12-05 23:50:07 +11:00
Jaiden Mispy
171dbea382 note memory use improvement 2014-12-05 23:37:07 +11:00
Jaiden Mispy
f718ec4f85 Link to API documentation in README 2014-12-05 23:20:34 +11:00
Jaiden Mispy
215ab4dc6d fix tests 2014-12-05 23:08:18 +11:00