Coder Social home page Coder Social logo

intertrackerstreak's Introduction

League of Legends Discord Win Streak Tracker

Project Logo

Overview

This project consists of a Discord bot that interacts with the League of Legends API to provide information about players' win streaks and game stats. It includes two main components:

  1. Bot Functionality (main.py): A Discord bot written in Python using the discord.py library. The bot connects to your Discord server, listens to events, and responds to user commands with information from the League of Legends API.

  2. Win Streak Tracker (detectStreak.py): A backend script responsible for monitoring players' win streaks. It interfaces with the riotApi.py module to fetch player data, calculates win streaks, and updates a SQLite database (my_database.db) located in the modules directory with the streak information.

Project Structure

interTrackerConda/
│
├── modules/
│ ├── init.py
│ ├── databaseFunctions.py
│ ├── riotApi.py
│ └── my_database.db
│
├── main.py
├── config.py
├── detectStreak.py
├── environment.yml
└── .gitignore<br>
  • The modules directory contains modules for interfacing with the League of Legends API (riotApi.py) and managing the database (databaseFunctions.py). The SQLite database (my_database.db) for win streak information is also located in this directory.
  • The root directory holds files related to the Discord bot, including the main bot script (main.py), configuration settings (config.py), a script to track win streaks (detectStreak.py), the environment file (environment.yml), and the .gitignore file.

Getting Started

  1. Clone this repository to your local machine.

  2. Set up a Python virtual environment and activate it.

  3. Install project dependencies from the environment.yml file:

    conda env create -f environment.yml
    conda activate your_environment_name
    
  4. Set up your Discord bot on the Discord Developer Portal.

  5. Copy config.example.py to config.py and fill in your Discord bot token.

  6. Run the Discord bot and the win streak tracker in separate terminal sessions from the root directory:

    python main.py
    python detectStreak.py
    

Usage

  • The Discord bot responds to user commands with information about win streaks and game stats. Use !help to see available commands.
  • The win streak tracker (detectStreak.py) automatically updates the database with win streak information for tracked players.

Contributing

Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.

Licesnse

This project is licensed under the MIT License.

intertrackerstreak's People

Contributors

felipe-l avatar trev6450w 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.