Git Product home page Git Product logo

adztbotv2's Introduction

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...โœจ

adztbotv2's People

Contributors

darkonion0 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

adztbotv2's Issues

Improve embeds

Discord implemented some times ago message components. This would be very nice to add them to the shared link to replace the old /vote command with just a ๐Ÿ‘ and ๐Ÿ‘Ž

Invalid UserId

The bot fail to fetch user document at startup with weird userId but the right count of them. This may be an error while converting the ObjectId to string ๐Ÿคท.
2023-06-19_22-10

Note

The whole app failed to fetch the right userId

Add user ranking

I've already started working on it, and right now only the way to display data is really missing. We should implement a way to rank all the posters in their guild.

User registration check failed

The /register command shouldn't be able to register a user more than 1 time, but in the current state (only the master branch is impacted) it can be run as many times the /register command is triggered.

Universal music sharing

Currently, if someone shares a Spotify link, another one using Deezer / Tidal... can't easily open it. We should implement a way to be able to share a link from all major streaming platform and publish it to with the right link when available.

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.