GithubHelp home page GithubHelp logo

fazuh / faz-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.99 MB

Wynncraft utility and statistics discord bot.

License: MIT License

Makefile 0.65% Shell 1.97% Python 97.38%
discord-bot wynn wynncraft wynncraftapi

faz-docker's Introduction

faz-bot

Wynncraft utility and statistics discord bot. Inspired by motoki317's moto-bot.

Warning

This repository is currently in development phase, and may undergo many unstable and/or breaking changes.

Development

Some useful shortcuts for development are written in Makefile.

  • make build to (re-)build the image and launch the bot.
  • make up to launch the bot (does not rebuild the image).
  • make down to stop the bot and DB.

For debugging:

  • make bot [build|up|down|bash] Manage container related to fazbot service.
  • make db [build|up|down|bash] Manage container related to fazdb service.
  • make sql [build|up|down|bash] Manage container related to mysql service.

Actions:

  • build to (re-build) the image and launch the service.
  • up to launch to launch the service (does not rebuild the image).
  • down to stop the service.
  • bash to open bash shell on the container.
  • Empty action to attach to the service's standard output.

Access your SQL database remotely through SSH by forwarding the remote port to a local port on your machine:

# Accessing database using phpMyAdmin on localhost:8080
ssh -L 8080:localhost:8080 user@remote-ip

# Accessing database using mariadb/mysql client on localhost:3306
ssh -L 3306:localhost:3306 user@remote-ip

Production

You can either manually build and install the bot, or pull image from the release. Using docker might be easier but overheads could be a problem in small servers.

Docker Installation

  1. Clone this repository.
git clone https://github.com/FAZuH/faz-bot.git

cd faz-bot
  1. Create a file named .env and set environment variables (see .env-example).
  2. Execute docker-compose up -d.

faz-docker's People

Contributors

fazuh avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 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.