Giter Site home page Giter Site logo

karuthack's Introduction

Karuta grabbing bot

A Karuta discord grabbing bot

image

Instalation

Without docker

Install node-14

Install tesseract ocr

  sudo apt install tesseract-ocr

install image magick

  sudo apt install imagemagick

install packages

  npm install

Configuration

Open config.js

{
  accessToken: string                   # Your discord accessToken
  allNameInSeries?: Array<string>       # A list of series where ALL names matches, skip seriesList && namesList
  seriesList?: Array<string>            # The list of whished series
  namesList?: Array<string>             # The list of whished names
  channels: Array<{
    name?: string                       # discord channel name, optional
    guildId: string                     # discord Server/Guild id, can be found in typing request
    channelId: string                   # discord channel id, can be found in typing request
    grabType: 'interaction'|'reaction'  # Use 'reaction' if grab work with emojie, 'interaction' if grab work with buttons
  }>                                    # List of scanned channels
}

Get your accessToken in a "typing" request

  1 - Via a web browser go to https://discord.com/channels/648031568756998155/648033099317248001 (Karuta official server)
  2 - Open channel "karuta-main-1"
  3 - Inspect page (Ctrl + Shift + i)
  4 - Open "Network" panel
  5 - Type a message
  7 - Typing request will appear, click on it to see details
  8 - In "Network" -> "Typing" -> "Headers" -> "Request Headers" find the "Authorization" header
  9 - Copy the value, this is your accessToken, do not share it !

Get guildId and channelId in the channel url

  https://discord.com/channels/:guild_id/:channel_id

Usage

Docker

  docker build -t karuta .
  docker run karuta

Without Docker

  ./run.sh

karuthack's People

Contributors

gmonein avatar

Stargazers

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