Giter VIP home page Giter VIP logo

mattlau1 / opgg-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.11 MB

Discord bot that sends LoL builds including items and runes scraped off OP.GG using Python, Selenium for web scraping & Pillow for image processing

Home Page: https://github.com/mattlau1/OPGG-Discord-Bot

Python 100.00%
discord opgg bot champion league-of-legends discord-bot discord-py leagueoflegends runes builds

opgg-discord-bot's Introduction

OP.GG Bot for Discord

Notes

  • This bot is very slow and inefficient, please do not use it

Preview

Preview Image 1

Features

  • League of Legends champion build [Usage: /build [lane] [champion]]
    • Uses http://lol.lukegreen.xyz/ api to scrape OP.GG data
    • Sends top 5 builds for champion in specified lane
    • Lanes: [ top | mid | jg | adc | sup ]
    • Usage: /build top katarina
  • OP.GG Search [Usage: /opgg [region](optional) [name]]
    • Sends OP.GG page
    • Defaults to Discord username if no name or region specified
    • Regions: [ oce | na | las | jp | br | tr | ru | eune | kr | lan | euw ]
    • Usage: /opgg kr hide on bush
  • Dark Mode [Usage: /darkmode]
    • Toggles dark mode (currently used in OP.GG Rune Page)

Setup

Create a new file 'secret_token.py' inside a new folder called secret and insert the following code:

# This should be in src/secret/secret_token.py
class token_class():
    def get_token(self):
        self.token = 'REPLACE WITH TOKEN'
        return self.token

Install Requirements with pip3 install -r requirements.txt

Run with python3 bot.py

opgg-discord-bot's People

Contributors

mattlau1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

savalierdev

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.