From d3201486123d22a9686d95a8c44c3496fffe29a6 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Wed, 2 Dec 2020 22:43:56 +0100 Subject: [PATCH] Update functions.py --- functions.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/functions.py b/functions.py index 3996478..cedacda 100644 --- a/functions.py +++ b/functions.py @@ -5,20 +5,10 @@ import requests from discord.ext import commands from checks import * -#some functions taken from the old bot def format_list_entry(embed, list, name): embed.add_field(name="{} ({})".format(name, len(list)), value=", ".join(list), inline=False) return embed - -def get_avatar(user, animate=True): - if user.avatar_url: - avatar = str(user.avatar_url).replace(".webp", ".png") - else: - avatar = str(user.default_avatar_url) - if not animate: - avatar = avatar.replace(".gif", ".png") - return avatar - + def did_mention_other_user(users, author): for user in users: if user is not author: @@ -59,7 +49,7 @@ def write_json(file_name, data): return data def hit_endpoint(command): - url = [CENOSRED_URL] + url = [CENSORED_URL] payload = {} headers = {}