Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
/ ADZTBotV2 Public archive

A little discord bot to share music and video written in Golang

License

Notifications You must be signed in to change notification settings

DarkOnion0/ADZTBotV2

Repository files navigation

ADZTBotV2

Build Check code Latest release

A little discord bot with a small footprint and easy to use to share music and video with your friends on your discord server

ADZTBotV2 is the successor of ADZTBot. It has been rewritten in go to make it much faster, easier to deploy, easier to maintain...

🚀 Key Features

  • Share music or video with your friends and vote for the post you like
  • Support Slash Commands

📖 Usage

To use the bot you just need to type / in the message box in discord and the bot command auto-completion will start, pretty easy right ?!

img.png

💾 Installation

🐹 Go Binary

  1. Download the binary from the release page

  2. Execute the command with the following flags (this flags can be get running the executable with the -help flag)

      -admin string
           The bot administrator discord role ID (default "0")
      -chanm string
           Discord channel id where the post of the music category will be sent to
      -chanv string
           Discord channel id where the post of the video category will be sent to
      -db string
           The mongodb database name
      -debug string
           Sets log level to debug true/(false) (default "false")
      -guild string
           Test guild ID. If not passed - bot registers commands.Commands globally
      -timer int
           Set a custom timer scheduled for all the background tasks of the bot, run every [X] nanoseconds (default 3600000000000)
      -token string
           Bot access token
      -url string
           The mongodb access url
    
  3. And that's it

📦 Container (Docker, Podman...)

1. 💾 Installation

There is 2 way to install ADZTBotV2 using container

  1. Downloading It, You can download the prebuilt container with the container manager you want, currently only linux container are built, for more information see the package page

    podman pull ghcr.io/darkonion0/adztbotv2:THE_VERSION_YOU_WANT

    ⚠️ The latest tag follow the master branch so it may be unstable or just not-working, USE IT AT YOUR OWNN RISKS⚠️

  2. Building it,

    You can build ADZTBotV2 using any OCI container builder you want that support Dockerfile. The official and currently only supported methods is Buildah but you can also build it with Docker.

    To build ADZTBotV2 using buildah execute the following command

     buildah bud -t adztbotv2-local .

2. ✨ Running

Execute the following command and replace the env variables value by your own (you can also run the container with docker by the way)

podman run -dt -e DB=$db -e URL=$url -e CHANM=$chanm -e CHANV=$chanv -e TOKEN=$token -e ADMIN=$admin -e DEBUG=$debug -e TIMER=$timer adztbotv2 ghcr.io/darkonion0/adztbotv2:latest

🌉 Supported Container Platform

  • linux/amd64
  • linux/386
  • linux/arm64
  • linux/arm
  • ✨ More coming soon...✨