Giter Site home page Giter Site logo

randykinne / drw-prospect-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 51 KB

A cloud function to post prospect updates to the Detroit Red Wings subreddit

License: GNU General Public License v3.0

Python 100.00%
twitter reddit reddit-api python3 gcp-cloud-functions

drw-prospect-bot's Introduction

forthebadge

drw-prospect-bot

This is a bot written in Python. It currently adds all daily posts from a twitter account into a single post to a subreddit thread - specifically, a post about the prospects of the Detroit Red Wings.

Deployment

The bot is currently deployed as a Cloud Function which is subscribed to the updates Cloud Pub/Sub topic.

The updates topic recieves scheduled messages from Cloud Scheduler. Fancy.

Config

Parameter Type Description Default value
client_id str Your reddit client id X
client_secret str Your reddit client secret X
password str Your reddit account password X
username str Your reddit account username X
access_key str Your twitter access key X
access_secret str Your twitter access secret X
consumer_key str Your twitter consumer key X
consumer_secret str Your twitter consumer secret X
author_name str Author of the reddit thread to comment on name
confirm_actions boo Boolean value of whether to confirm the bot's actions before they happen True
message_prefix str Prefix to attach to the twitter updates the bot posts message_prefix
message_replace [str] Replace text in the tweets. Useful for repetitive hashtags. Can only replace one word with another single word. ["word", "replaceWith"]
message_suffix [str] Suffix to attach to the twitter updates the bot posts on Reddit. ["suffix_1", "suffix_2"]
subreddit_name str Name of subreddit to search for posts subreddit
subreddit_sort_by int 0 for hot, 1 for new, 2 for top 0
testing boo When enabled, testing prevents the bot from actually posting to Reddit True
twitter_count int Number of tweets to get from Twitter. Max limit of time is 30 regardless of the number of tweets getting 15
twitter_name str Username of twitter account to pull tweets from twitter_name
verbose boo Boolean value of whether to print updates to console. Recommended: True True

Contributors

  • Randy Kinne - Creator - GitHub
  • Evan Lock - Contributor - GitHub

License

Licensed under the GNU General Public License v3.0.

drw-prospect-bot's People

Contributors

randykinne avatar 3vanlock avatar

Watchers

James Cloos avatar  avatar

drw-prospect-bot's Issues

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.