eq

command module
v0.0.0-...-2018efd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 15 Imported by: 0

README

eq

This program download all attachements files to a discord message and save it only if it's not already saved.

How it work

Files are downloaded in the directory under the SRC_DIR environment variable and are named with an UUID.
The bot look for his connection token in the environment variable named TKN.

A goroutine watch files in the directory under the SRC_DIR environment variable and check if the file is in the directory DST_DIR environment variable.
If a file from the SRC_DIR is already present in the DST_DIR it's removed, otherwise the file is moved.

Environment variable

  • TKN → The discord bot token
  • SRC_DIR → Directory where files are downloaded
  • DST_DIR → Directory where files are unique
  • HOST → Host where the server listen
  • PORT → Port the server listen on
  • BASEURL → Base URL of the static server

Installation

Requirements
  • go version go1.17.5
  • docker
Run the bot
  • Defines environment variables
  • Run make ctn-run, it will start the container

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL