Git Product home page Git Product logo

stevebot's Introduction

steveBot

Twitter Badge PyPI PyPI

A Twitter bot that tweets a Steve Buscemi word of the day.

How to install

With Docker

sudo docker run -it -e consumer_key=<YOUR_KEY> -e consumer_secret=<YOUR_KEY> -e access_token=<YOUR_KEY> -e access_token_secret=<YOUR_KEY> -e time_of_day=00:00 -e wordnik_api_key=<YOUR_KEY> ghcr.io/ejach/stevebot:latest

Docker Compose

version: '3.2'
services:
   stevebot:
      container_name: stevebot
      image: ghcr.io/ejach/stevebot:latest
      environment:
        - time_of_day=00:00
        - consumer_key=<consumer_key>
        - consumer_secret=<consumer_secret>
        - access_token=<access_token>
        - access_token_secret=<access_token_secret>
        - wordnik_api_key=<api_key>
      restart: unless-stopped

Manually

  • Clone the repository
  • Install the requirements using pip3 install -r requirements.txt
  • Edit the .env file with your Twitter tokens and Wordnik API key
  • Start the program by running python3 main.py
  • Go crazy

⚠ NOTICE ⚠

This is intended as a joke, please do not take it seriously.

stevebot's People

Contributors

dependabot[bot] avatar ejach avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stevebot's Issues

`TypeError` with Docker ENV variables

raise TypeError("at() should be passed a string") Is thrown at different points in the script, but it comes down to the environment variables not being read properly.
Will test and fix soon.

Fix `TweepError: 186`

tweepy.error.TweepError: [{'code': 186, 'message': 'Tweet needs to be a bit shorter.'}]
Handle this exception so that it strips the tweet length if it is more than the maximum character count.

Fix Tweet structure

Tweet is tweeting in a way that is not intended, will fix in later commits.

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.