Skip to content

A bot which can play music and image when someone entered a voice channel.

Notifications You must be signed in to change notification settings

Donvlouss/Discord_BGM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

BGM kun

A bot which can play music and image when someone entered a voice channel.

Installation

pip install discord youtube_dl

Install FFmpeg

Confiuraion

  1. Input GUILD ID, CHANNEL ID, Path of FFmpeg and BOT TOKEN in bgm_bot.
    Guild ID and Channel ID is the text channel.
    Bot will log someone enter a voice channel and show a image if has.
  2. Run bgm_bot, then the config file will be generated.

Usage

Add user

  1. You can directly edit config.json.
    Data format is below.
    Add a new user, then add a new block.
" < Client ID > " :{ 
        "bgm" : "< File name or Youtube Link : str>,"
        "time": " <sec: int> ", # suggest 10 sec
        "img" : " < File Name: str > "
    }
  1. Use command in discrod.
    !add_user USER_ID BGM TIME
  1. When any changes to config, run this command in discord to update.
!update_context

Currently, image could be added by editing config only.

About

A bot which can play music and image when someone entered a voice channel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages