diff options
| author | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-08-21 12:57:29 +0200 |
|---|---|---|
| committer | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-08-21 12:57:29 +0200 |
| commit | 8d8f3a4d536aa6f952c7e9f66a80341156c3188a (patch) | |
| tree | 14ecffec0e53b45dfe10f034ad1f3d34001fcbd9 /cogs | |
| parent | small changes (diff) | |
| download | senator-sperma-8d8f3a4d536aa6f952c7e9f66a80341156c3188a.tar.gz senator-sperma-8d8f3a4d536aa6f952c7e9f66a80341156c3188a.zip | |
can't use await with vc.play
Diffstat (limited to '')
| -rw-r--r-- | cogs/music/play_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/music/play_utils.py b/cogs/music/play_utils.py index 1e46594..e21d6d9 100644 --- a/cogs/music/play_utils.py +++ b/cogs/music/play_utils.py | |||
| @@ -107,11 +107,11 @@ class PlayUtils: | |||
| 107 | 107 | ||
| 108 | # Play the audio | 108 | # Play the audio |
| 109 | source = discord.FFmpegPCMAudio(source=filename) | 109 | source = discord.FFmpegPCMAudio(source=filename) |
| 110 | await vc.play(source) | 110 | vc.play(source) |
| 111 | 111 | ||
| 112 | logger.info(f"Playing file: {title}") | 112 | logger.info(f"Playing file: {title}") |
| 113 | await ctx.respond(f"grom: {title}") | 113 | await ctx.respond(f"grom: {title}") |
| 114 | 114 | ||
| 115 | except Exception as e: | 115 | except Exception as e: |
| 116 | logger.error(f"Error in play: {str(e)}", exc_info=True) | 116 | logger.error(f"Error in play: {str(e)}", exc_info=True) |
| 117 | await ctx.respond(f"eror: {str(e)}", ephemeral=True) \ No newline at end of file | 117 | await ctx.respond(f"eror: {str(e)}", ephemeral=True) |
