Commit graph

68 commits

Author SHA1 Message Date
Jaiden Mispy
75566103d4 Case-insensitive Bot::get 2016-08-21 23:37:44 +10:00
Ross Penman
29be84607a
Waaaaaayyyyy more efficient delaying 2016-03-02 01:31:55 +00:00
Jaiden Mispy
8bbe22f55c Less strict anti-bot strategies 2016-02-23 07:00:09 +11:00
Jaiden Mispy
20dff3a148 Fire event when someone retweets us. Fixes #76 2016-01-13 01:29:33 -08:00
Jaiden Mispy
554aa2654c Monkeypatch to fix #91 with current twitter gem 2016-01-12 23:36:21 -08:00
Rachel Hyman
cbec615108 Don't reply to blacklisted users 2016-01-08 16:33:05 -06:00
Jaiden Mispy
13e5c47301 Fix issue in user self-update 2015-05-24 01:30:31 -07:00
Jaiden Mispy
bab8d77556 Merge pull request #69 from Stawberri/save_user_object
@user variable
2015-03-24 00:15:33 +11: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
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
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
64c1aa411c Add default delay range, configure check 2014-12-12 22:53:55 +11: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
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
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
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
5bfaac99de Some actual tests for the bot response logic 2014-11-15 03:55:32 +11:00