GithubHelp home page GithubHelp logo

track's Introduction

This is a fork of padtrack's Discord bot, rewritten for nextcord. Contains utilities for World of Warships and other features I find useful.

You may invite padtrack's bot here.

Have questions or suggestions? Click here to join the support server!

Acknowledgements

Installation

Getting Started

The bot can be started in either testing or production. In production, the render worker(s) and bot are kept separate, so do the following on both instances:

  • Create a new Python >3.9 venv
  • Install the dependencies with pip install -U -r requirements.txt.

On the bot's instance, additionally install redis-server. Create a password by commenting the line containing bind 127.0.0.1 ... and uncommenting requirepass foobared, with a password more secure than foobared.

On the render worker's instance, additionally install ffmpeg.

Finally, create bot/assets/private and run bot/scripts/setup/setup.py.

Configuration files

bot/config.toml

  1. Create a new Discord application, and create a bot user for it. It is highly recommended to have a separate testing and production application. Add these tokens to bot_testing and bot_production.

  2. Generate a secret for the authentication server with bot/scripts/generate_secret.py.

  3. Change the authentication servers' domain to your domain.

  4. Create a new Wargaming application. Replace the "token" with the Client ID.

  5. Replace the production server's secret with the password you set earlier.

track_auth/auth/config.py

  1. Add the Client ID of your Wargaming application here.
  2. Add the secret for the authentication server here.
  3. Replace the domain with your domain.

Updating

Obtain a copy of GameParams.data from res/content/ using the WoWS Unpacker Tool.

  • When placed into bot/scripts/gameparams/, run.py will generate gameparams.db, which should be moved to bot/assets/private/.

track's People

Contributors

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