Giter Site home page Giter Site logo

genshin-artifact-rater's Introduction

Genshin Artifact Rater

Discord bot that rates an artifact against an optimal 5* artifact. Put the command and image in the same message.

If you would like to add it to your private server use the link:
https://discord.com/api/oauth2/authorize?client_id=774612459692621834&permissions=19456&scope=bot

You can also use the bot by sending the command in a DM to Artifact Rater#6924.

If you have any issues, please contact shrubin#1866 or Chizy#0303 on discord or use the -feedback command.

Join the support server: https://discord.gg/SyGmBxds3M

Usage

-rate <image/url> [lvl=<level>] [<stat>=<weight> ...]

Default Weights

ATK%, DMG%, Crit - 1
ATK, EM, Recharge - 0.5
Everything else - 0

Options

Level

Compare to specified artifact level (defaults to parsed artifact level)

-rate lvl=20

Weights

Set custom weights (valued between 0 and 1)

-rate atk=1 er=0 atk%=0.5

<stat> is any of HP, HP%, ATK, ATK%, ER (Recharge), EM, PHYS, CR (Crit Rate), CD (Crit Damage), ELEM (Elemental DMG%), Heal, DEF, DEF%

Development

If you need help or want to contribute, feel free to DM shrubin#1866 or Chizy#0303 and join https://discord.gg/SyGmBxds3M

Setup

python3.8 -m pip install -r requirements.txt

Set up a bot on the Discord Developer Portal
Go to https://ocr.space and get an API key

Store environment variables for OCR Space and Discord in .env

DISCORD_TOKEN=<token>
OCR_SPACE_API_KEY=<key>

Cogs

To load cogs, make sure to create a config.toml and put the cogs in a list.

cogs = ["<cog name>"]

Optional:
Set a Discord CHANNEL_ID=<id> to receive messages when the bot goes up/down
Set DEVELOPMENT=True to divert all messages to CHANNEL_ID

Run the bot

python3.8 bot.py

Run one-off

Edit url in rate_artifact.py

python3.8 rate_artifact.py

genshin-artifact-rater's People

Contributors

shrubin avatar ohchizy avatar picklejason avatar patricksantozz avatar rairulyle avatar aacayaco 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.