Commit graph

112 commits

Author SHA1 Message Date
Jaiden Mispy
bab8d77556 Merge pull request #69 from Stawberri/save_user_object
@user variable
2015-03-24 00:15:33 +11:00
Jaiden Mispy
1d1b1930d8 3.0.9 2015-03-12 09:40:50 -07:00
Jaiden Mispy
9f9dfc9b0c Add warning when consuming a plaintext corpus 2015-03-11 02:41:18 -07:00
Jaiden Mispy
2c7246c30e 3.0.8 2015-02-07 22:15:45 -08:00
Stawberri
13e12922da Log message
Now shows a log message when user information is updated
2015-01-18 14:59:13 -08:00
Stawberri
499056e2e3 Send user ID array with on_connect.
This would be useful for people who might want to do some follow list
processing without using an extra requests (i.e. to compare with a list
of followers)
2015-01-17 21:16:57 -08:00
Stawberri
fd0529021a Fixed a variable name
Well, that's embarrassing.
2015-01-16 22:58:46 -08:00
Stawberri
770739d922 Check ID before updating user 2015-01-16 22:13:20 -08:00
Stawberri
19f670ed42 Redundant line removal
I can't spell.
2015-01-16 21:36:26 -08:00
Jaiden Mispy
d3183bd75f Merge pull request #70 from Stawberri/fix_regexp_warning
Fixed a warning message
2015-01-17 12:18:42 +10:00
Mispy
ed166e2694 3.0.7 - remove eventmachine dependency 2015-01-16 21:18:02 +00:00
Stawberri
c88aefece8 New on_connect event when stream is connected. 2015-01-15 15:51:13 -08:00
Stawberri
56f5bc3028 Fixed a warning message
It was bugging me whenever I syntax checked. :<
2015-01-15 03:10:15 -08:00
Stawberri
442dcb3370 Compare ids instead of usernames
Non user-editable values are less prone to strange errors, right?
2015-01-15 03:07:42 -08:00
Stawberri
5c6746cc46 Renamed update_user_object
Just to reduce confusion, to make sure people don't accidentally set
@user to someone else in the future.
2015-01-15 02:49:16 -08:00
Stawberri
023cbb3183 Restructure receive_event to use case
This is much more readable!
2015-01-15 02:46:09 -08:00
Stawberri
0f56a1a6eb Update @user when receiving a user_update event. 2015-01-15 02:39:01 -08:00
Stawberri
d657f25be4 Create @user variable
Since #prepare already calls twitter.user, it'd be best to just save it!
2015-01-15 02:34:45 -08:00
Stawberri
3cea0c83e2 Bot can now respond to favorite events.
I wrote this for myself, but I thought I would share!
2015-01-06 21:40:17 -08:00
Joel McCoy
6e41bdb373 Fix typo in Bot#unfollow 2015-01-02 17:22:39 -05:00
Jaiden Mispy
596f41f15f Keep people in convo as long as they replied once 2014-12-20 07:24:40 +11:00
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
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
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
bb5b9e8025 Merge pull request #58 from Stawberri/conditional_reply_prefix
Conditional reply_prefix for replies
2014-12-12 20:36:29 +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
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
cb4c09b744 3.0.4 2014-12-08 23:31:44 +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
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
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
Stawberri
6bc89cd4fb Switched to .match for matching
Mispy taught me something about ruby precedence today!
2014-12-06 03:29:29 -08: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
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
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
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