Giter VIP home page Giter VIP logo

vulwsztyn / discord-js-music-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 159 KB

Shell 0.39% TypeScript 98.38% JavaScript 1.22%
discord discord-bot hacktoberfest music discordjs typescript discord-js discord-js-bot discord-bot-template discord-bot-template-ts discord-bots discord-command-handler discord-js-template discord-js-v14 discord-js-v14-command-handler discordjs-v14 discordjs-typescript

discord-js-music-bot's Introduction

discord.js v14 example bot

This is an example of lavaclient using discord.js v14

Setup

    1. Create an application in the Discord Developer Portal.
    1. Grab the bot token from the "Bot" tab.
    1. Click the Use this template button
    1. Install all dependencies: yarn or npm install
    1. Setup lavalink
      1. Make sure you have java 11 or above installed.
      1. Grab a jar from the Lavalink Releases Page
      1. Create an application.yml in the same folder as the Lavalink.jar
      1. Start lavalink using: java -jar Lavalink.jar
    1. Rename .env.example to .env and replace the value of BOT_TOKEN to the token from step 2
    1. Run the Bot
    • production: yarn start
    • development: yarn dev or yarn dev --force-sync if you're modifying application commands (updating, creating, deleting, etc...)

discord-js-music-bot's People

Contributors

vulwsztyn avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

codeciepol

discord-js-music-bot's Issues

Spotify error

ubuntu@instance-20210423-1513:~$ yarn start
yarn run v1.22.19
error Couldn't find a package.json file in "/home/ubuntu"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ubuntu@instance-20210423-1513:~$ cd
.bash_history              .npm/                      .yarn/                     music-bot/
.bash_logout               .profile                   .yarnrc                    rythm-manager/
.bashrc                    .ssh/                      JMusicBot-0.3.6.jar        server_test/
.cache/                    .sudo_as_admin_successful  Lavalink.jar
.config/                   .vscode-server/            application.yaml
.local/                    .wget-hsts                 logs/
ubuntu@instance-20210423-1513:~$ cd music-bot/
ubuntu@instance-20210423-1513:~/music-bot$ yarn start
yarn run v1.22.19
$ yarn dev --force-sync
$ yarn build && node . --force-sync
$ yarn clean && tsc
$ rimraf dist
[discord] slash commands: removing 0, adding 0, updating 14
[discord] ready!
[music] now connected to lavalink
/home/ubuntu/music-bot/node_modules/@lavaclient/spotify/dist/lib/item/SpotifyAlbumLoader.js:30
            tracks: album.tracks.items,
                                 ^

TypeError: Cannot read properties of undefined (reading 'items')
    at SpotifyAlbumLoader.load (/home/ubuntu/music-bot/node_modules/@lavaclient/spotify/dist/lib/item/SpotifyAlbumLoader.js:30:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SpotifyManager.load (/home/ubuntu/music-bot/node_modules/@lavaclient/spotify/dist/lib/SpotifyManager.js:84:22)
    at async Play (/home/ubuntu/music-bot/dist/functions/Play.js:18:26)
    at async Object.play (/home/ubuntu/music-bot/dist/lib/messageCommands.js:54:13)
    at async Bot.handleMessage (/home/ubuntu/music-bot/dist/lib/Bot.js:51:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

New commands

  • skip
  • seek
  • forward
  • back
  • nowplaying
  • pause
  • resume
  • clear
  • shuffle
  • play previous
  • loop
  • move
  • current ts

Fix translation formatting

image

Was ist mir geblieben
Von meinen Wünschen?
Nur Splitter des Glücks
Das ich zerbrach
Was bleibt ist ein Lied von
Schwindenen Träumern
Ein tonloses Echo
Am Tag danach.

Einst haben wir uns aus Träumen erschaffen
Gezeugt in einer stürmischen Nacht
Dann sind wir schließlich
Von Wahrheit zerissen
Vom Alltag verschlissen, ängstlich erwacht
Tage des Kampfes und Nächte der Tränen
Haben uns letztlich soweit gebracht
Uns einzugestehen
Auch wenn Zweifel nagen
Der Bund wird zerschlagen, mit aller Macht!

Mit Tinte aus Mut und Federn der Hoffnung
Einst geschrieben auf weissem Papier
Vergilbt sind die Seiten
Die Worte vergessen
Von Abscheu zerfressen, Briefe von dir
Grausiges Schweigen und schwärende Wunden
Sind stumme Zeugen unserer Schlacht
Geflohen die Liebe
Von Lügen vertrieben
Was ist uns geblieben, von jener Nacht?

Aus jemer Nacht sind Jahre geworden
So mancher Frühling wurde zum Herbst
Das Laub an mir ist fast schon gestorben
What is left for me
Of my wishes?
Only splinters of happiness
That I broke
What remains is a song of
Of fading dreamers
A soundless echo
The day after.

Once we created ourselves from dreams
Conceived in a stormy night
Then finally we are
Torn by truth
Worn out by everyday life, fearfully awakened
Days of struggle and nights of tears
Have finally brought us so far
To admit to ourselves
Even though doubts gnaw
The covenant is shattered, with all our might!

With ink of courage and feathers of hope
Once written on white paper
Yellowed are the pages
The words forgotten
Eaten by loathing, letters from you
Horrible silence and festering wounds
Are silent witnesses to our battle
Fled love
Driven away by lies
What is left of that night?

Some night has become years
Many a spring has become autumn
The leaves on me have almost died

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.