GithubHelp home page GithubHelp logo

tweet-provider's Introduction

pajbot Python 4HEad

pajbot is a twitch chat bot created by pajlada.
Website

Note: pajbot is in maintenance mode. This means we focus on keeping the project alive by not allowing major overhauls of any pajbot system or any major features. Fixing bugs, updating dependencies and ensuring that code interacting with external APIs still function will be our main goal. Feature requests will not be accepted unless someone is willing to own the feature, and even then some features that change too much of the architecture won't be allowed. Current minimal supported Python version is 3.9.

Python versioning

We use pyenv to manage Python versions. Get familiar with this tool.
Quick install of pyenv on Linux systems: curl https://pyenv.run | bash

If you don't want to use pyenv's version of Python in any of our scripts, set the SKIP_PYENV environment variable to 1.

Quick install

  1. Install library requirements by typing ./scripts/venvinstall.sh in the root folder
  2. Copy ./configs/example.ini to ./config.ini and change the relevant lines in the file.
  3. Run the bot! ./main.py

Detailed install

You can find a detailed installation guide for pajbot in the install-docs directory of this repository.

Run-time options

Some values can be set to apply to your bot without modifying the config file, these are mostly for out-of-bot things.
They are configured using environment variables. The following options are available:

  • PB1_LOG_HIDE_TIMESTAMPS
    If this option is set to 1, all log entries will be printed without a timestamp prefix.

tweet-provider's People

Contributors

dependabot[bot] avatar ldesgoui avatar leppunen avatar pajlada avatar randers00 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tweet-provider's Issues

Large volumes of tweets silently crashes tweet provider

So this issue really only happens if you're following donald trump - and as a result, I can't test with any other user on twitter.
It appears that due to trump receiving such a large volume of tweets, tweet provider crashes or disconnects and stops working. If someone can find a similar twitter user, I can do more testing, but when I unfollowed trump on fabzeef's bot, the crashing stopped.

WebSocket protocol error

Since being rate limited, I've had to start using the tweet-provider option for tweet streaming on pajbot. I'm running into a weird issue where after a while, I run into many websocket protocol errors and it just stops working. I'm forced to restart the twitter provider in order to get it working again: https://hastebin.com/ucayororek.css

Not sure if this is something I've done wrong, or if it's something wrong with tweet-provider.

tweet-provider should restart on unfollow

Currently tweet-provider restarts when you follow a user, but doesn't restart when you unfollow a user. It should restart when you unfollow a user, else it will continue to fetch all activity relating to that user.

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.