GithubHelp home page GithubHelp logo

0xfanz / albion-killbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from black-river-gaming/albion-killbot

0.0 0.0 0.0 29.11 MB

Discord bot to display kill statistics in Albion Online.

License: MIT License

Shell 0.51% JavaScript 57.56% TypeScript 41.05% HTML 0.75% Dockerfile 0.13%

albion-killbot's Introduction

Server Dashboard

albion-killbot

Discord bot to display kill statistics in Albion Online.

It keeps tracks of events using the gameinfo API and displays tracked events for specific players, guilds or entire alliances. For now, we only track kill events in the open world.

Also, when you are tracking a guild, the bot will display the monthly ranking every day at 12pm (bot time).

Other feature suggestions are welcome in the issues section of the github. Please join our Discord server for further questions: https://discord.gg/56AExWh

Development

While you can develop without docker, this is the preferred way used for the development team. Steps to start working with it are described below.

Requirements

Setup steps

First, you need a Discord Token to run the bot component. The bot uses the following environment variable:

DISCORD_TOKEN=<your discord token>

You can drop that into an server/.env file or in your system's environment variables.

We have a convencience script called ctl.sh (refered in this guide as ctl) that you can install using npm link and use to quickly start the project. This assumes you have the requirements set-up. The commands inside are well-descripted so you can use them directly if you wish.

To start the project, just run:

ctl start

And then follow the logs using ctl.sh logs [component]. The component list can be found in ctl help.

That's it! Any changes made in the watched folders (src/interfaces/<component>/nodemon.json) will trigger a restart.

NOTE: Because the bot deals with sub processes, sometimes a full restart may be required. ctl restart is the command to do this.

Upgrading from v3

If you are already using v3, there is a convencience script at the server that is designed to help with migrations. To run it, you can use:

ctl migrate

This will setup a temporary devenv and run the migrations. Outside of docker, there is the npm run db:migrate script, but you need to setup the necessary environment variables for that to work.

Contributing

Patches and suggestions are very welcome, but please note that I will judge the quality of the code before merging it through the Pull Request process.

albion-killbot's People

Contributors

agnjunio avatar dependabot[bot] avatar dogrocker avatar jjosef avatar lucianoajs avatar remmody avatar timagixe avatar zerlas 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.