Giter Site home page Giter Site logo

red-discordbot-docker's Introduction

Red Discord Bot Docker

Docker Hub Pulls Docker Image Version (tag latest semver)

Red Discord Bot, now containerised.

Note

This is an unsupported deployment method for Red. Do not expect support from the developers of Red Discord Bot if you run into any issues.

Warning

BREAKING CHANGE: Additional redbot arguments passed via EXTRA_ARGS must now be passed as described in Additional Options.

Tags

Tags Red version
latest Latest release
x.x.x See tag

Environment Variables

Name Description Type Default
INSTANCE_NAME The name of your Red Bot instance.
Example: MyBot
string RedBot
PREFIX Your bot's command prefix.
Example: !
string
TOKEN Your bot token from Discord Developers. string
RPC_ENABLED Whether RPC is enabled or not. boolean false
RPC_PORT The port used by Red's RPC server, if enabled. string 6133
TEAM_MEMBERS_ARE_OWNERS Treat Discord Developers application team members as owners. boolean false
PIP_REQUIREMENTS Optional space-separated list of pip packages to install. string
LOAD_COGS Optional space-separated list of cogs to load on startup. string

Additional Options

If you wish to pass additional options to the redbot command, these can be added to the command option in docker-compose.yml or appended to the docker run command.

Warning

Do not add arguments which conflict with existing environment variables, such as --prefix, --rpc, etc.

Tip

You can see a full list of redbot options here.

Setup

See the docker-compose-example.yml for a basic example of a working bot with Docker Compose.

After running the steps below, your Red Discord Bot will be alive!

Running the bot with Docker Compose

Create a docker-compose.yml file based on the example and configure the environment variables to suit your desired configuration.

Be sure to update the /opt/redbot path if you wish your bot's persistent data to be stored elsewhere.

Now run docker compose up -d and see your bot come alive!

To retrieve the invitation URL, run docker compose logs RedBot. If you only started the container a few moments ago, you may need to wait a few seconds for the bot to be created, started, and connected.

Running the bot with docker run

Basic setup:

docker run -d \
  --name 'RedBot' \
  -v /opt/redbot:/redbot/data \
  -e "INSTANCE_NAME=RedBot" \
  -e "PREFIX=^" \
  -e "TOKEN=yourBotToken" \
  ghcr.io/rhomelab/red-discordbot:latest

With extra command arguments (see Additional Options above), for example to allow mentioning the bot as an alternative to using the bot prefix:

docker run -d \
  --name 'RedBot' \
  -v /opt/redbot:/redbot/data \
  -e "INSTANCE_NAME=RedBot" \
  -e "PREFIX=^" \
  -e "TOKEN=yourBotToken" \
  ghcr.io/rhomelab/red-discordbot:latest \
  --mentionable

To retrieve the invitation URL, run docker logs RedBot. If you only started the container a few moments ago, you may need to wait a few seconds for the bot to be created, started, and connected.

red-discordbot-docker's People

Contributors

tigattack avatar renovate[bot] avatar issy avatar kiweezi avatar emmaisadev avatar darkflame72 avatar github-actions[bot] avatar okamidash 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.