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
Jaiden Mispy
dd505d7dc9
bundle exec
2014-12-05 22:58:45 +11:00
Jaiden Mispy
56aadea555
Merge branch '3.0'
2014-12-05 22:57:41 +11:00
Jaiden Mispy
822f5e4c6c
More cleanup
2014-12-05 22:57:32 +11:00
Jaiden Mispy
1977445b1c
Lots of documentation and cleanup
2014-12-05 21:12:39 +11:00
Jaiden Mispy
efde0fd16f
Conversation-based bot detection and politeness
2014-12-05 19:04:15 +11:00
Jaiden Mispy
8708aaa3e3
Allow starting a single bot by name
2014-12-05 16:35:57 +11:00
Jaiden Mispy
fa45316553
ebooks start command, reorganizing CLI
2014-12-05 16:22:21 +11:00
Jaiden Mispy
daeda5d7eb
Add ebooks auth
command
2014-12-05 14:03:11 +11:00
Jaiden Mispy
401586471b
Separate unprompted tracking from mention includes
2014-12-04 05:32:41 +11:00
Jaiden Mispy
1a40ef85f9
Slightly different pesters model
2014-11-19 10:08:32 +11:00
Jaiden Mispy
24e8ce5ae3
Block blacklisted users on contact
2014-11-18 14:31:59 +11:00
Jaiden Mispy
2e336fb9be
On second thought, we can't use a cache system
...
Simply because the corpuses are too darn big to keep around
2014-11-18 13:51:31 +11:00
Jaiden Mispy
8135aaaabb
Use can_pester? logic for timeline tweets
2014-11-18 13:31:59 +11:00
Jaiden Mispy
9d8e30d7f6
Don't be so hasty to consider people bots
2014-11-18 13:26:06 +11:00
Jaiden Mispy
b72a6db0e1
Threading!
2014-11-18 13:24:59 +11:00
Jaiden Mispy
29beb23502
Bot anti-bot measures
...
We assume a user is a bot if it has 'ebooks' in the name
or if it replies more than once in a 30-second window
2014-11-18 12:00:34 +11:00
Jaiden Mispy
8326fc19dd
INTERNAL_CONSTANTS is really recent
2014-11-15 04:46:12 +11:00
Jaiden Mispy
a003946194
Require ruby 2.0+
2014-11-15 04:35:03 +11:00