Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakkuzan committed Oct 27, 2023
2 parents a59e628 + dab402f commit 47cf912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy on EC2
on:
push:
branches: [master]
workflow_dispatch:

jobs:
tests:
Expand Down Expand Up @@ -93,7 +94,7 @@ jobs:
WAVELINK_PASSWORD: ${{ secrets.WAVELINK_PASSWORD }}
with:
host: ${{secrets.BOI_HOSTNAME}}
username: ec2-user
username: opc
key: ${{secrets.BOI_PRIVATE_KEY}}
envs: DISCORD_TOKEN, SERVER_IP, SERVER_ENDPOINT, SERVER_PORT, DOCKER_BOI_IMAGE, DOCKER_BOI_NAME, WAVELINK_URL, WAVELINK_PORT, WAVELINK_PASSWORD
script_stop: true
Expand All @@ -114,8 +115,8 @@ jobs:
-e WAVELINK_PORT=$WAVELINK_PORT \
-e WAVELINK_PASSWORD=$WAVELINK_PASSWORD \
-e SENTRY_KEY=$SENTRY_KEY \
-v /home/ec2-user/soundboards:/wkk-bot/cache/soundboards \
-v /home/opc/soundboards:/wkk-bot/cache/soundboards \
--name $DOCKER_BOI_NAME \
$DOCKER_BOI_IMAGE
docker image prune <<< y
docker image prune <<< y
2 changes: 1 addition & 1 deletion src/cogs/audio/wavelink_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def search_tracks(self, search_phrase: str) -> tuple[list[wavelink.Playabl
if youtube_playlist_regex and youtube_playlist_regex.groups():
safe_url = f'https://www.youtube.com/playlist?list={youtube_playlist_regex.groups()[0]}'
playlist = await wavelink.YouTubePlaylist.search(safe_url)
tracks = playlist[0].tracks
tracks = playlist.tracks
# ...or soundboard...
elif search_phrase.isdecimal():
sound_id = int(search_phrase)
Expand Down

0 comments on commit 47cf912

Please sign in to comment.