Giter VIP home page Giter VIP logo

blasebot's Introduction

Blasebot


A Discord bot for Blaseball.

Features

  • Game lookup (/lookup day [season] [day] <team playing>)
  • Player lookup (/lookup player [full name])
  • Team lookup (/lookup team [team name])
  • Game score updates (/subscribe scores [team])
  • Game summaries (/subscribe summaries [team])
  • Event subscription (/subscribe events)
  • End-of-game betting reminders (/subscribe bets)

Game Scores

Game score update subscription allows you to have scoring plays for all games that a specific team play be sent directly to a channel of your choice. You can enable this by using /subscribe scores [team]. If you wish to stop having this information sent to a channel, you can use /unsubscribe scores [team]. You may only have scores for one team sent to a channel, and you cannot have a given team's scores be sent to multiple channels.

Game Summaries

Game summaries are similar to score update subscriptions. When a game ends, a score card – the same style that is generated with game lookups – will be sent to the subscribed channel. Unlike game score subscriptions, you may have multiple teams' summaries sent to the same channel. You can subscribe to summaries using /subscribe summaries [team] and unsubscribe with /unsubscribe summaries [team].

Privacy

No personal data is stored in the database, only channel IDs, guild IDs, and the IDs of any blaseball teams are stored.

Forbidden Knowledge

Warning! This code contains some forbidden knowledge, which can demystify the game of blaseball. Look at the code at your own risk!

Invite Bot

You can invite Blasebot to your server using this link. This link is also shown by using the bot's /info command.

Running the bot

With Docker

To run the bot with docker, firstly you must copy sample.env to .env and fill in the relevant fields, docker will override dbUrl so you do not need to worry about that one! After that, you can simply run docker-compose up --build, this will start the container.

Without Docker

If you wish to run the bot without docker, you will need to use Node 14.5.0 minimum. To run the bot make sure to run npm install to install all packages. You can then configure a file named config.json at the top level of the directory. See sample.config.json for how to configure the bot. Once the config file has been created, run node command-json/updateCommands from the top directory to register the bot's slash commands with Discord. Blasebot uses a Mongoose database to store subscriptions – if you are running the bot locally, leave MongoDB (mongo) running in the background before starting up the bot.

Once everything is set up, you can run Blasebot with node bot/main from the top directory.

blasebot's People

Contributors

estherbolik avatar kenyonprater avatar mfcrocker 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.