Skip to content

Al-Ghoul/Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic Discord music bot

First you'll need to clone the repo with

git clone https://github.com/Al-Ghoul/Discord-Bot

then run

yarn install --production
yarn deploy

or use Docker

docker build -t discord-bot .

The -t sets a tag name for ur container, and the . looks up for a DockerFile in the current directory, (You don't need to write any DockerFiles as I provided one with the repo) so you either cd (change directory) to your cloned repo or provide an absolute path such as D:\Development\JavaScript\Discord-Bot. if it contains any spaces or unusual characters make sure to put it in quotes.

Then you run the container with

docker run -d discord-bot

The -d runs the container in “detached” (in the background), then it'll take care of everything (i.e install dependencies and run the bot).

If you want to run this repo interactively on docker and start coding from there you can run this command in ur powershell, usually u should be using something like vs code.

docker run -it --mount "type=bind,src=$pwd,target=/src" node:18-alpine sh

The -it runs the container interactively, --mount binds a directory to the container, so you either use PS var like $pwd (cd ing to the repo's dir) or provide an absolute path, target specifies the directory name which will be bound to the container (i.e appears there on commands like ls), finally node:18-alpine is a lightweight nodeJS container which doesn't have a bash, that's why we run sh

About

A general purpose bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published