This commit is contained in:
Romain J 2021-01-21 16:13:46 +01:00
parent 01e0e5e27e
commit 37bbf0368e
4 changed files with 8 additions and 11 deletions

View file

@ -2,7 +2,8 @@ from discord.ext import commands
from jishaku.models import copy_context_with
def _(x): return x
def _(x):
return x
class AliasConvertor(commands.Converter):

View file

@ -7,7 +7,8 @@ from tuxbot.cogs.Polls.functions.exceptions import (
from tuxbot.cogs.Polls.models import Poll
def _(x): return x
def _(x):
return x
class PollConverter(commands.Converter):

View file

@ -170,9 +170,7 @@ class Polls(commands.Cog, name="Polls"):
field["name"][6:].replace("__", "")
)
chart_options["data"]["datasets"][0].get("data").append(
responders
)
chart_options["data"]["datasets"][0]["data"].append(responders)
if responders <= 1:
field["value"] = f"**{responders}** vote"

View file

@ -1,6 +1,5 @@
import argparse
import importlib
import json
import logging
import os
import re
@ -401,11 +400,9 @@ def basic_setup() -> None:
def update() -> None:
response = (
requests.get(
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
).json()
)
response = requests.get(
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
).json()
if response.get("sha")[:6] == version_info.build:
print(