Giter Club home page Giter Club logo

twitch-bot's Introduction

Twitch Bot for Dota 2 streamers

TwitchIO version Python version License

Description

Twitch Bot builded using TwitchIO asynchronous library. Project also contains DotaBuff scraper and OpenDota API parsing script which receive and process data needed for proper and efficient bot work.

  • !add_bot - Adds not functional bot to your channel. To make it fully functional you have to complete bot setup (4 commands below).
  • !setup_dota {DOTA_PLAYER_ID} - Setups connection with Dotabuff.com.
  • !setup_socials {link1} {link2} ... - Setups your social links
  • !setup_steam {steam_link} - Setups your steam link
  • !setup_donation {donation_link} - Setups your donation link.
  • !setup_help - Help information about setup process.

Bot global commands:

  • !help - Help information about available commands.
  • !rank - Responds with streamer's rank
  • !wr - Responds with streamer's WinRate for the stream
  • !mmr - MMR randomizer. Funny command.
  • !last - Responds with information about last streamer's match.
  • !donate - Responds with donation info.
  • !steam - Responds with Steam account link.
  • !social - Responds with streamer's social links.

Only broadcaster available commands (Broadcaster chat):

  • !bot_off - Turns bot OFF. (Locks all commands + cleans dota matches story. )

  • !bot_on - Turns bot ON. (Unlocks all commands)

  • !remove_bot - Removes bot from your channel. You will be able to add it again.

  • !change_dota_id - Change Dota player ID. Recommended if you have changed dota account.

  • !change_steam - Changes steam link.

  • !change_donation - Changes donation link.

  • !change_socials - Changes your social links.

Routines:

  • Social routine - sends social links every 70 mins.
  • Donation routine - sends donation info every 60 mins.

Run Locally

Clone the project

  git clone https://github.com/MaksimSinyu/Twitch-Bot.git

Go to the project directory

  cd Twitch-Bot

Install packets

  pip install -r requirements.txt

Start the server

   python bot.py

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

TMI_TOKEN - TMI token you get from Twitch

CLIENT_ID - Client ID you get from Twitch

CLIENT_SECRET - Client Secret you get from Twitch

BOT_NAME - Your Bot name

BOT_PREFIX - Command prefix

CHANNEL - Channel which is used for the Bot

DATABASE_URL - Database URL (I use SQLite)

Authors

License

MIT

Twitch-Bot

twitch-bot's People

Contributors

gameusertop4ikf avatar maksimsinyu avatar

Stargazers

 avatar

Watchers

 avatar

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.