Git Product home page Git Product logo

jmusicbot-flyapp's Introduction

JMusicBot on fly.io

JMusicBot Discord music bot on fly.io

Run your own Discord music bot for free (within free tier) on fly.io

fly.io Deployment

GitHub Codespaces

  1. Fork this repository.
  2. On your own fork, click Code, and click Codespaces tab.
  3. Click "Create codespace on main".
  4. Check if JMusicBot version in Dockerfile is latest, if not, change to the latest version.
  5. Login to flyctl by using fly auth login or you can generate access tokens and paste it to FLY_API_TOKEN in Codespaces secrets.
  6. Create an app on fly.io fly launch --copy-config --name app-name --no-deploy --vm-memory 256.
  7. When asked to tweak these settings before proceeding, enter yes if you want to tweak settings like selecting the region closest to you, otherwise, enter no.
  8. After fly launch, flyctl will add [http_service] section, remove the whole [http_service] section in fly.toml, we don't need that.
  9. Set environment variables for JMusicBot. fly secrets set -a app-name TOKEN=<your_discord_bot_token>
  10. Set your Discord user ID at the config.txt.
  11. Deploy to fly.io fly deploy -a app-name --ha=false.
  12. When asked to allocate a dedicated IPv4 address, enter no.
  13. Add the Discord bot to a server and check if the bot is online.

Local

You need flyctl installed.

  1. Clone this repository.
  2. Check if JMusicBot version in Dockerfile is latest, if not, change to the latest version.
  3. Login to flyctl by using fly auth login.
  4. Create an app on fly.io fly launch --copy-config --name app-name --no-deploy --vm-memory 256.
  5. When asked to tweak these settings before proceeding, enter yes if you want to tweak settings like selecting the region closest to you, otherwise, enter no.
  6. After fly launch, flyctl will add [http_service] section, remove the whole [http_service] section in fly.toml, we don't need that.
  7. Set environment variables for JMusicBot. fly secrets set -a app-name TOKEN=<your_discord_bot_token>
  8. Set your Discord user ID at the config.txt.
  9. Deploy to fly.io fly deploy -a app-name --ha=false.
  10. When asked to allocate a dedicated IPv4 address, enter no.
  11. Add the Discord bot to a server and check if the bot is online.

Change server configuration

Type fly deploy -a app-name on the repository after editing config.txt.

fly.io free tier

fly.io requires a credit card in order to work. If you don't have a credit card or if you are afraid that fly.io will charge you so much, it is recommended to buy prepaid credits that can be used with virtual credit cards.

jmusicbot-flyapp's People

Contributors

animmouse avatar

Stargazers

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