jw
d6d4ec5c98
Replace if with try statement
2017-10-29 00:07:19 -07:00
jw
ed00dccd5a
Make sure cmd[1] exists before checking it
2017-10-28 23:57:03 -07:00
jw
4a73c75722
Don't let reddit users PM to '/u/' prefaced users
...
This is probably not a big deal, but at the moment if you PM the bot to tip another user on reddit, and you include /u/ prefixed to the user's name, the bot will send coins to an account that can't exist. For instance:
!tip /u/jwinterm 1
would send coins to reddit:/u/jwinterm, but '/' is not a valid character for reddit usernames. This change presumes that the sender intended to send funds to jwinterm and strips of the '/u/' preceding the actual username.
2017-10-28 22:57:44 -07:00
jw
fb105da6a0
Fix typo and update get_unread to inbox.unread
2017-10-28 19:10:20 -07:00
moneromooo
08691aadbb
Port to newer praw
...
Obviously, everything changed in various ways and the doc was useless
2017-10-19 21:44:03 +01:00
moneromooo
a59acafd48
reddit: allow tips after arbitrary text
2015-07-30 21:43:51 +01:00
moneromooo
903a587209
reddit: fix parsing of tips-as-replies
...
"+" was treated a valid number, since all parts were optional
2015-07-28 18:43:57 +01:00
moneromooo
33aa1debca
reddit: fix amount parsing
...
It was only allowing floats (ie, with a decimal dot).
2015-03-13 20:13:00 +00:00
moneromooo
890b385c03
reddit: ignore posts from an author with no name
2015-03-13 20:12:25 +00:00
moneromooo
8564fc6990
reddit: fix missing comments
...
is_root is a root *comment*, not the main post
2015-03-13 20:11:43 +00:00
moneromooo
e1101ec592
reddit: guard against missing is_root field
2015-03-13 19:18:50 +00:00
moneromooo
fd7ca261b2
reddit: make the cache timeout configurable
...
And decrease poll time
2015-02-15 11:17:54 +00:00
moneromooo
3ebd4befc5
reddit: add an option to use the get_unread API
...
It doesn't work unless the bot has "Reddit gold".
2015-02-15 11:06:13 +00:00
moneromooo
53366012e1
always import user/link in modules
2015-02-14 12:15:49 +00:00
moneromooo
184476409c
reddit: ignore authorless messages
2015-02-09 20:02:26 +00:00
moneromooo
490b6304da
reddit: fix command splitting creating empty tokens
2015-02-07 22:40:28 +00:00
moneromooo
f41763478a
reddit: PMs now don't need the keyword to be parsed
2015-02-06 19:37:25 +00:00
moneromooo
b1373c629c
Add a reddit network
2015-02-06 11:11:14 +00:00