style
This commit is contained in:
parent
01e0e5e27e
commit
37bbf0368e
4 changed files with 8 additions and 11 deletions
|
@ -2,7 +2,8 @@ from discord.ext import commands
|
||||||
from jishaku.models import copy_context_with
|
from jishaku.models import copy_context_with
|
||||||
|
|
||||||
|
|
||||||
def _(x): return x
|
def _(x):
|
||||||
|
return x
|
||||||
|
|
||||||
|
|
||||||
class AliasConvertor(commands.Converter):
|
class AliasConvertor(commands.Converter):
|
||||||
|
|
|
@ -7,7 +7,8 @@ from tuxbot.cogs.Polls.functions.exceptions import (
|
||||||
from tuxbot.cogs.Polls.models import Poll
|
from tuxbot.cogs.Polls.models import Poll
|
||||||
|
|
||||||
|
|
||||||
def _(x): return x
|
def _(x):
|
||||||
|
return x
|
||||||
|
|
||||||
|
|
||||||
class PollConverter(commands.Converter):
|
class PollConverter(commands.Converter):
|
||||||
|
|
|
@ -170,9 +170,7 @@ class Polls(commands.Cog, name="Polls"):
|
||||||
field["name"][6:].replace("__", "")
|
field["name"][6:].replace("__", "")
|
||||||
)
|
)
|
||||||
|
|
||||||
chart_options["data"]["datasets"][0].get("data").append(
|
chart_options["data"]["datasets"][0]["data"].append(responders)
|
||||||
responders
|
|
||||||
)
|
|
||||||
|
|
||||||
if responders <= 1:
|
if responders <= 1:
|
||||||
field["value"] = f"**{responders}** vote"
|
field["value"] = f"**{responders}** vote"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import argparse
|
import argparse
|
||||||
import importlib
|
import importlib
|
||||||
import json
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
@ -401,11 +400,9 @@ def basic_setup() -> None:
|
||||||
|
|
||||||
|
|
||||||
def update() -> None:
|
def update() -> None:
|
||||||
response = (
|
response = requests.get(
|
||||||
requests.get(
|
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
|
||||||
"https://api.github.com/repos/Rom1-J/tuxbot-bot/commits/master"
|
).json()
|
||||||
).json()
|
|
||||||
)
|
|
||||||
|
|
||||||
if response.get("sha")[:6] == version_info.build:
|
if response.get("sha")[:6] == version_info.build:
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in a new issue