Giter Club home page Giter Club logo

twitchspammer's Introduction

TwitchSpammer

This project sends pre-defined messages to a Twitch channel using your account. The messages are sent every 30 minutes, and only if the channel is live.

Watch out for Twitch's Rate Limits!

Disclaimer: because the communication happens over IRC, there is no way to confirm whether messages are published to the chat or not. Depending on the automod policies of the channel, rate limiting, and other factors, messages may not be published, although the logs report that messages are being sent.


Requirements

  • Python 3
  • Twitch account

Instructions

To run TwitchSpammer, simply download this repository, install the necessary dependencies, and run the code.

# Install dependencies
pip3 install -r requirements.txt

# Run TwitchSpammer
python3 twitchspammer.py --username=<twitch_username> \
                         --oauth_token=<oauth_token>  \
                         --channel=<channel_name>     \
                         --interval=<interval_min>    \
                         --messages=<filepath>        \
                         --log=<path_to_logfile>
  • username: the Twitch username;
  • oauth_token: the OAuth token. You can use this page to get an OAuth token for your account or check the official Twitch developer documentation to learn how to manually create one. The token must not include the oauth: prefix;
  • channel: channel that you wish to send messages to;
  • messages: file that has the messages to be sent to the channel chat. See an example on data/messages.txt;
  • interval (optional): interval between sending messages, in minutes;
  • log (optional): log file location. Example: /tmp/log.log.

DockerHub

A container version of the app is also available in DockerHub.

docker run --name twitchspammer                             \
           --env USERNAME=<twitch_username>                 \
           --env OAUTH=<oauth_token>                        \
           --env CHANNEL=<channel_name>                     \
           --env INTERVAL=<interval_min>                    \
           --mount type=bind,src=<src_folder>,dst=/messages \
           --mount type=bind,src=<src_folder>,dst=/log      \
           matuzalemmuller/twitchspammer:latest

Environment variables:

  • USERNAME: the Twitch username;
  • OAUTH: the OAuth token. You can use this page to get an OAuth token for your account or check the official Twitch developer documentation to learn how to manually create one. The token must not include the oauth: prefix;
  • CHANNEL: channel that you wish to send messages to;
  • INTERVAL (optional): the interval between sending messages, in minutes.

Mounts:

  • /messages: the directory that contains the file with messages to be sent (messages.txt);
  • /log(optional): the directory where the logs will be saved.

twitchspammer's People

Contributors

matuzalemmuller avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

twitchspammer'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.