Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

docs: music bot example #107

Merged
merged 16 commits into from
Jun 9, 2021
Merged

docs: music bot example #107

merged 16 commits into from
Jun 9, 2021

Conversation

amishshah
Copy link
Member

Please describe the changes this PR makes and why it should be merged:

This PR adds an example implementation of a music bot using discord.js. It focuses on:

  • Reconnection logic
  • Error handling and important state transitions
  • Implementing a music queue
  • Interesting uses of metadata in AudioResources

Status and versioning classification:

@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

Merging #107 (bb2854f) into main (0a92031) will not change coverage.
The diff coverage is n/a.

❗ Current head bb2854f differs from pull request most recent head 6d6365b. Consider uploading reports for the commit 6d6365b to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #107   +/-   ##
=======================================
  Coverage   63.46%   63.46%           
=======================================
  Files          18       18           
  Lines         813      813           
  Branches      191      191           
=======================================
  Hits          516      516           
  Misses        295      295           
  Partials        2        2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a92031...6d6365b. Read the comment docs.

@amishshah amishshah marked this pull request as ready for review June 7, 2021 21:06
examples/music-bot/src/bot.ts Show resolved Hide resolved
examples/music-bot/src/bot.ts Outdated Show resolved Hide resolved
examples/music-bot/src/music/subscription.ts Show resolved Hide resolved
examples/music-bot/src/bot.ts Outdated Show resolved Hide resolved
examples/music-bot/src/bot.ts Outdated Show resolved Hide resolved
examples/music-bot/src/bot.ts Outdated Show resolved Hide resolved
examples/music-bot/src/bot.ts Outdated Show resolved Hide resolved
examples/music-bot/src/bot.ts Show resolved Hide resolved
examples/music-bot/src/music/subscription.ts Outdated Show resolved Hide resolved
examples/music-bot/src/music/subscription.ts Outdated Show resolved Hide resolved
amishshah and others added 2 commits June 8, 2021 20:53
@amishshah amishshah requested a review from kyranet June 8, 2021 19:56
@amishshah amishshah merged commit fe3627c into main Jun 9, 2021
@amishshah amishshah deleted the feat/example-player branch June 9, 2021 06:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants