Sign inSign up

nnari/formatbot

By nnari

Updated over 3 years ago

Discord formatting bot

Image
0

50K+

nnari/formatbot repository overview

FormatBot

Formats the code blocks of a message using Discord context menus.

Invite

If you wish to invite the bot to your server, you can do it using this invite

Required Permissions

  • Read Messages
  • Send Messages
  • application.commands scope

Getting Started ⚙️

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Requirements
  • Docker
  • Docker Compose (compatible with docker-compose version 3.8)

Get the Docker version you need here!

Setup

Since this bot has a docker-compose.yml file and is hosted on DockerHub, all you need to start your own version of Formatbot locally is to clone this repository and set up the .env file.

The .env file is used to configure the bot token and owner id, in the following format:

DISCORD_TOKEN=<insert token>
OWNER=<insert owner id>
For Linux and Mac run
$ cp .env.example .env
For Windows run
> Copy-Item .env.example .env

Edit the .env file with your favourite editor, filling out the following properties:

Run the bot via docker-compose

$ docker-compose up --build --detach

Without Docker

Create the .env file like before.
Then run yarn && yarn dev to start a development environment.

Authors 👤

Show your support ⭐️

Give a ⭐️ if this project helped you!

License 📝

Copyright © 2021 Tatu Pesonen
This project is GPLv3 licensed.

Tag summary

Content type

Image

Digest

sha256:21bb465e5

Size

794.6 MB

Last updated

over 3 years ago

docker pull nnari/formatbot