@@ -1,3 +1,16 @@ | |||
## 2.2.2 | |||
### Changelog | |||
- fixed error that stopped users being able to vote skip a song when vote skip is enabled | |||
--- | |||
#### Update Notes | |||
To update, just `git pull` inside of the working directory. Make sure to update dependencies using `python3 -m pip install -Ur requirements.txt` in your venv before you run the bot. | |||
## 2.2.1 | |||
### Changelog |
@@ -12,7 +12,7 @@ __title__ = "roxbot" | |||
__author__ = "Roxanne Gibson" | |||
__license__ = "MIT" | |||
__copyright__ = "Copyright 2015-2017 Roxanne Gibson <me@roxxers.xyz>" | |||
__version__ = "2.2.1" | |||
__version__ = "2.2.2" | |||
__description__ = """Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | |||
Roxbot is designed be a multi-purpose bot and provide many different services for users and moderators alike with a focus on customisability. |
@@ -431,7 +431,7 @@ class Voice(commands.Cog): | |||
self.skip_votes[ctx.guild.id].append(ctx.author) | |||
# -1 due to the bot being counted in the members generator | |||
ratio = len(self.skip_votes[ctx.guild.id]) / (len(ctx.voice_client.channel.members) - 1) | |||
needed_users = ceil((len(ctx.voice_client.channel.members) - 1) * voice["skip_ratio"]) | |||
needed_users = ceil((len(ctx.voice_client.channel.members) - 1) * voice.skip_ratio) | |||
if ratio >= voice.skip_ratio: | |||
await ctx.send("{} voted the skip the video.".format(ctx.author)) | |||
await ctx.send("Votes to skip now playing has been met. Skipping video...") |