Coder Social home page Coder Social logo

lgtm-migrator / yagami Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yagamiapp/yagami

0.0 0.0 0.0 6.97 MB

An auto-ref and tournaent manager for osu!

Home Page: https://yagami.clxxiii.dev

License: MIT License

JavaScript 97.57% CSS 0.45% HTML 1.89% Dockerfile 0.09%

yagami's Introduction

Yagami Banner

Commit Activity Discord Size Twitter Website Status

The future of osu! tournaments

Yagami is a bot that aims to replace the role of spreadsheeters and referees in the osu! tournament scene. All hosts need to do is add the bot to their tournament server, set up some tournament settings, add some mappools and open registrations. The bot will handle team creation, team naming, and anything you might need it to handle.

Server setup

The first step is inviting the bot to your server.

Then, you'll need to run the following commands to change all of the settings to your liking:

/settings

Next, create a tournament:

/tournaments create

You can change the tournament's settings at any time using /tournaments edit

Your server can have multiple tournaments, but only one tournament running at once. To change which server is currently active, use /tournaments activate

Once your tournament is setup, and you're ready to open registrations:

/tournaments registration enabled:True

Set up a round with the following commands:

/rounds create
/rounds edit
/rounds addmap
/rounds bulkaddmap

...

Development

Clone the repository, and install the dependencies

git clone https://github.com/clxxiii/yagami.git
pnpm install

You will need to add a .ENV file and add the following variables:

# Your osu username
BANCHO_USERNAME=
# Your osu IRC password (https://old.ppy.sh/p/irc)
BANCHO_PASSWORD=
# Your API key (https://old.ppy.sh/p/api)
BANCHO_API_KEY=
# An osu application Client ID
OSU_CLIENT_ID=
# An osu application Client Secret
OSU_CLIENT_SECRET=
# An osu application Redirect URI
OSU_REDIRECT_URI=
# A discord bot token
DISCORD_TOKEN=
# The ID of the guild you are developing in
TEST_GUILD_ID=
# The client ID of your discord application
DISCORD_CLIENT_ID=
# The channel in which global bug reports should be sent to
BUG_CHANNEL_ID=
# This can be changed to a different location if you wish
DATABASE_URL="file:./db/dev.db"
# A github secret to be used in webhooks
GITHUB_SECRET=
# The branch that will be updated when a commit is made to it
GITHUB_PROD_BRANCH=
# The channel to send log messages to
LOG_CHANNEL

Next, setup prisma and if you'd like, run prisma studio in a new terminal window

npx prisma init
npx prisma migrate dev

In new window:

npx prisma studio

Lastly, run the dev command to get started!

pnpm run dev

yagami's People

Contributors

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