Giter Club home page Giter Club logo

minonkabot's Introduction

Miňonka

League of Legends discord bot

Tested on:

  • OS:
    • Ubuntu 22.04.1 (Jammy Jellyfish)
    • Arch Linux
    • Raspbian 11 (Bullseye)
  • NodeJS:
    • v18.16.1
    • v18.14.2
  • tsc: 4.8.2
  • Discord.JS: 14.9.0

How to run:

  • First we need create .env file and fill it with some credentials Example .env file:

    DISCORD_ID=1234567890123456
    DISCORD_TOKEN=1234567890ABCDEF.ABCDEF.1234567890
    RIOT_TOKEN=RGAPI-12345678-90AB-CD12-3456-7890ABCDE
    DDRAGON_URL=https://ddragon.leagueoflegends.com
    PORT=3000
    WEB_PATH=http://localhost:3000
    KEY=RANDOM_KEY
    ERROR_REPORT_CHANNEL=123456789012345678
    • https://discord.com/devlopers
      • Create new app and new bot in it
      • Copy CLIENT ID to DISCORD_ID and CLIENT SECRET to DISCORD_TOKEN
    • https://developer.riotgames.com/
      • Create new app
      • Then copy API KEY to RIOT_TOKEN
    • PORT is port on which will be running the web server, which serves live rank
    • WEB_PATH is path to web server, which serves live rank and bot will use it in command
    • KEY will be used in buttons, to check if the buttons are from this specific bot
  • Building bot

    Install node modules:

    #npm
    $ npm i
    #pnpm
    $ pnpm i

    Build discord bot:

    #npm
    $ npm build
    #pnpm
    $ pnpm build

    Register slash commands on server:

    #npm
    $ npm startCommands
    #pnpm
    $ pnpm startCommands

    Run setup script, to copy fonts:

    $ chmod +x setup.sh
    $ ./setup.sh

    Run discord bot:

    #npm
    $ npm start
    #pnpm
    $ pnpm start
  • Run bot in dev mode:

    #npm
    $ npm dev
    #pnpm
    $ pnpm dev

minonkabot's People

Contributors

patrick11514 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.