discord-vugo

command module
v0.0.0-...-31de30a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 13 Imported by: 0

README

discord-vugo

discord video uploader written in golang. A simple way to host your video on Discord via the HLS method.

Requirements

Usage

  • Download binaries from Release page.
  • Open terminal in the folder have discord-vugo binary then type ./discord-vugo.exe (or chmod +x ./discord-vugo then ./discord-vugo in Linux)
  • On the first run, it will create the configuration file discord-vugo-config.yaml.
  • Open the discord-vugo-config.yaml file with Notepad (or your favorite IDE like Visual Studio Code, Vim, nano,...).
  • You may check out the Configuration section below.

Configuration

Use those options in discord-vugo-config.yaml

bot_token [REQUIRED]

Type: string

Description: Bot token, claim it from Discord Developer Portal. How to get bot token

guild_channel_id [REQUIRED]

Type: string

Description: Channel ID to upload file into it, right click to a channel you need to get ID, click Copy Channel ID. Make sure you add your bot to the server and give your bot permission to send attachments to that channel in your server.

input_file [REQUIRED]

Type: string

Description: Input file path to upload. Optional if you pass it via -i argument.

output_file

Type: string

Default: ./output.m3u8

Description: Output playlist file path. Can pass it via -o argument.

use_proxy

Type: boolean

Default: false

Description: Enable proxy URL.

proxy_endpoint

Type: boolean

Description: Required if use_proxy is enabled. Endpoint proxy will write to playlist file. Example with https://example.com/proxy?url=, output in the playlist file will be https://example.com/proxy?url=https%3A%2F%2Fcdn.discordapp.com%2Fattachments%2F1145752139927388313%2F1146790582899978340%2FSuisei_is_Talalala.mp4%3Fex%3D65ce09f5%26is%3D65bb94f5%26hm%3D3ab28624177860467514e24543d7cd34a6a87ed278e06003f679b58052860cde%26

hls_time

Type: string

Default: 5

Description: Set the target segment length. See more: https://ffmpeg.org/ffmpeg-all.html#toc-Options-67 hls_time

Arguments

Usage: discord-vugo <arg> <value>

-i <input file path>: Required. Input file path to upload. Optional if you pass it via input_file option in configuration file.

-o <output file path>: Optional. Default ./output.m3u8. Output playlist file path. Can pass it via output_file option in configuration file.

Tutorial

How to get Discord Bot Token
  • Go to Discord Developer Portal

  • Click New Application

    image

  • Enter a name you want (of course bruh), remember to agree Discord TOS :)

    image

  • Go to Bot at sidebar

  • Click Reset Token

  • Enter 2FA code if you have

  • Copy the new token

    image

Install FFmpeg

Windows

Via Chocolatey

choco install ffmpeg

Linux

# Ubuntu, Debian,...
sudo apt install ffmpeg

# CentOS
yum install ffmpeg

# Arch Linux
pacman -S ffmpeg

License

MIT License

Credits

me.

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