Giter Club home page Giter Club logo

bitcointip's People

Contributors

manuelamadoraditazz avatar nerdfightersean avatar skeeto avatar vindimy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcointip's Issues

Use PRAW to fetch comments

eval_comments() in /src/bitcointip.py

Use praw to fetch all new comments.

Go through newly fetched comments and use find_comment_command(commentdataarray) to see if the comment has any commands. Execution of the command is taken care of in the find_comment_command() function.

Use PRAW to fetch messages

eval_messages() in /src/bitcointip.py

Use praw to fetch all new messages in /u/bitcointip inbox.

Go through newly fetched messages and use find_message_command(messageDataArray) to see if the message has any commands. Execution of the command and forming a response is taken care of in the find_message_command() function.

Add support for other currencies

Includes Regex detection of currencies in a tip, managing exchange rates, as well has having the bot reply with a verification in the tipping currency and displaying amounts in PMs to a user in their set currency.

Handle Downtime Correctly

If downtime is detected with bitcoind, mysql,or reddit, pause the service for a bit and try again later. if service is paused for too long, go into downtime mode. send notification to admin by accessing a notification url.

Create WITHDRAW command

Make a withdraw command that accepts a bitcoin address and amount. Make this only available through PM to the bot.

Implement PRAW for posting messages/comments to reddit.com

edit submit_messages()
in /src/bitcointip.py

"replyto" is the comment's thing_id that needs replied to.
use praw to create the comment and reply:
sendresult = comment.reply(text)
and then mark comment as sent or not depending on sendresult.

compose a message using praw:
sendresult = reddit.compose_message(replyto, subject, test)
and then mark message as sent or not depending on sendresult.

Merge comment/message tip evaluation into one function

in find_comment_command() and find_message_command(), regex is used to find out if a tip is present in the message. if there is, pass along the commentDataArray or messageDataArray to another function which evaluates the tip.

Take into account the differences in messages/comments.

make balance show conservative amount

if btc is incoming, but has 0 confirmations, don't count it when figuring balance until it has 1 confirmation. But if btc is outgoing and has 0 confirmations, count it in the balance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.