diff options
| author | salmonik <salmonik@noreply.codeberg.org> | 2026-04-19 18:10:09 +0200 |
|---|---|---|
| committer | salmonik <salmonik@noreply.codeberg.org> | 2026-04-19 18:10:09 +0200 |
| commit | f8e1cf36e1efa0602bf2e450835f2a67654762a6 (patch) | |
| tree | fe6b12226d7eebe2a0dc6525de3414d0c3718cc8 /cogs/voice.py | |
| parent | add support for x^2+y^2=0,4 and alike (diff) | |
| parent | fix: proper aiohttp async context manager mocking in test (diff) | |
| download | senator-sperma-f8e1cf36e1efa0602bf2e450835f2a67654762a6.tar.gz senator-sperma-f8e1cf36e1efa0602bf2e450835f2a67654762a6.zip | |
Merge pull request 'massive changes' (#3) from dev into main
Reviewed-on: https://codeberg.org/salmonik/senator-sperma/pulls/3
stable enough
Diffstat (limited to 'cogs/voice.py')
| -rw-r--r-- | cogs/voice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/voice.py b/cogs/voice.py index 07015cc..319bb16 100644 --- a/cogs/voice.py +++ b/cogs/voice.py | |||
| @@ -95,7 +95,7 @@ class VoiceManager: | |||
| 95 | if not voice_client: | 95 | if not voice_client: |
| 96 | return False | 96 | return False |
| 97 | 97 | ||
| 98 | if volume != 1.0: | 98 | if abs(volume - 1.0) > 1e-9: |
| 99 | audio_source = discord.PCMVolumeTransformer(audio_source) | 99 | audio_source = discord.PCMVolumeTransformer(audio_source) |
| 100 | audio_source.volume = volume | 100 | audio_source.volume = volume |
| 101 | 101 | ||
| @@ -197,4 +197,4 @@ class Voice(commands.Cog): | |||
| 197 | 197 | ||
| 198 | 198 | ||
| 199 | def setup(bot): | 199 | def setup(bot): |
| 200 | bot.add_cog(Voice(bot)) \ No newline at end of file | 200 | bot.add_cog(Voice(bot)) |
