Commit graph

48 commits

Author SHA1 Message Date
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
Jaiden Mispy
746d218896 Fix tweet event handling 2014-11-14 22:59:39 +11:00
Jaiden Mispy
e646e24744 Use new twitter gem streaming support
Made more complicated by the fact that this
is not inherently eventmachine-based, unlike
tweetstream
2014-11-14 22:46:07 +11:00
Geoffroy Couprie
0fe4b627d0 update deprecated code 2014-10-29 19:00:49 +01:00
Geoffroy Couprie
9731575a3d update twitter gem to 5.0 2014-10-27 13:57:07 +01:00
Jaiden Mispy
203c20f6f3 Seems we can't go to twitter 5 yet 2014-10-20 00:16:10 -07:00
Jaiden Mispy
f4dbf89c15 Fix deprecations for twitter gem 5 2014-10-18 22:59:28 -07:00
Jaiden Mispy
228e0caa65 More memory profiling 2014-10-18 22:21:50 -07:00
Pira Wetton
3706ae0bbb picture shortcut 2014-09-23 20:26:48 -04:00
Mispy
8a5c4831ad 2.2.5 - encoding: utf-8 2014-05-07 16:45:17 +10:00
Mispy
17ef359de2 2.2.3 - Avoid some mention edge cases 2014-04-28 10:57:14 -07:00
Mispy
d676eaa77f 2.2.1 - Handle mentions at end of string 2014-04-20 06:17:57 -07:00
Mispy
f362f1ab2b Fix off-by-one error in mentionless calculation 2014-04-19 22:13:07 -07:00
Erik Michaels-Ober
7e033b7b3b Fix file permissions 2014-02-12 16:23:49 +01:00
Amelia Cuss
437e1edff6 Don't connect a TweetStream if we don't use it. 2013-12-12 13:29:20 +00:00
Amelia Cuss
dbe909f7b7 Use STDOUT, please.
It exists for a reason!  Otherwise we can't distinguish errors (like
from unhandled exceptions).
2013-12-12 13:29:19 +00:00
Michael Henriksen
8402bbdc80 Make event handlers optional to define
Check if event handlers have been defined before attempting to call them.
This prevents the bot from crashing in the case that an event handler
hasn't been defined.
2013-11-30 19:26:40 +01:00
Mispy
00f0228dd4 2.0.8 -- different generation algorithm 2013-11-14 07:58:46 -08:00
Mispy
e87dc5862b Github time! 2013-11-08 06:02:05 +11:00