Sign inSign up

cefadrom/cefabot-v4

By cefadrom

•Updated about 2 years ago
Archived

My good old discord bot. Legacy, should not be used. Only here for nostalgic reasons.

Image
Content management system
0

340

cefadrom/cefabot-v4 repository overview

⁠Docker hub notes

GitHub repository: julien-wfff/cefabot-v4⁠

The image won't build, because the Debian repos of the Node 12 image I use don't exist anymore. And since no one, including me, cares, it will stay that way.

⁠Overview

The 4th version of my discord bot, with multiple bot clients support, and a web panel

⁠Development

⁠Main packages :
  • The bot :
    • Typescript
    • Mongoose for the DB
    • DiscordJS to communicate with the bots
    • Express for the web
  • The web panel :
    • SvelteJS
    • Tailwind CSS
    • Sweet alert 2
⁠Workspace :
  • /src : the source directory for the bot
  • /web : the directory for the web panel front-end

⁠Usage

The following environment variables are needed :

VariableDescription
NODE_ENVdev or prod
BOT_KEYBots encryption key used to secure the keys in the DB
DB_URIThe URI of the mongoDB server
STORAGE_PATHThe path to store uploaded files, absolute or relative to the project root
WEB_BASE_URLThe root URL of the web server (ex: http://host.ext⁠, or https://192.168.1.2:8000⁠)
WEB_PORTThe port of the web panel

You can use a .env file at the root of the project.

If some variables are missing, the bot will crash at starting.

Tag summary

Content type

Image

Digest

sha256:d4bc210ed…

Size

270 MB

Last updated

about 2 years ago

docker pull cefadrom/cefabot-v4