From 9041e0e46acca82c6b83edfb718f8f574629192a Mon Sep 17 00:00:00 2001 From: Soheab Date: Fri, 8 Jan 2021 23:30:53 +0100 Subject: [PATCH] typo --- README.md | 3 ++- changelog.md | 23 ++++++++++++----------- docs.md | 8 ++++---- vacefron/client.py | 1 - 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 188c941..9a8bdf7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ See the full and detailed [docs here](docs.md) ## Links -[API](https://vacefron.nl/api/) | [Changelogs](https://github.com/Soheab/vacefron.py/blob/master/changelog.md) | [Examples](https://github.com/Soheab/vacefron.py/blob/master/docs.md#examples) +[API](https://vacefron.nl/api/) | [Changelogs](https://github.com/Soheab/vacefron.py/blob/master/changelog.md) +| [Examples](https://github.com/Soheab/vacefron.py/blob/master/docs.md#examples) ## Made by diff --git a/changelog.md b/changelog.md index adc836c..9e3150f 100644 --- a/changelog.md +++ b/changelog.md @@ -3,27 +3,28 @@ See here what changed or broke each version. --- + ### v1.5.1 - January 8, 2020 - Added support for `circle_avatar` in [.rank_card()](docs.md#rank-card). See more in the docs. - Added one alias: `rankcard()` -> [`.rank_card()`](docs.md#rank-card) - + ### v1.5.0 - January 5, 2020 - Added support for new endpoints: [.dock_of_shame()](docs.md#await-vac_apidock_of_shameuser) and [.woman_yelling_at_cat()](docs.md#await-vac_apiwoman_yelling_at_catwoman-cat) . See more in the docs. - Added some aliases: - - `womanyellingatcat()` -> [`.woman_yelling_at_cat()`](docs.md#await-vac_apiwoman_yelling_at_catwoman-cat) - - `icanmilkyou()` -> [`.i_can_milk_you()`](docs.md#await-vac_apii_can_milk_youuser-user2--none) - - `iamspeed()` -> [`.iam_speed()`](docs.md#await-vac_apiiam_speeduser) - - `emergencymeeting()` -> [`.emergency_meeting()`](docs.md#await-vac_apiemergency_meetingtext) - - `changemymind()` -> [`.change_my_mind()`](docs.md#await-vac_apichange_my_mindtext) - - `carreverse()` -> [`.car_reverse()`](docs.md#await-vac_apicar_reversetext) - - `dockofshame()` -> [`.dock_of_shame()`](docs.md#await-vac_apidock_of_shameuser) - - `distractedbf()` -> [`.distracted_bf()`](docs.md#await-vac_apidistracted_bfboyfriend-girlfriend-woman) - - `batmanslap()` -> [`.batman_slap()`](docs.md#await-vac_apibatman_slaptext-text2-batmannone-robinnone) - - `firsttime()` -> [`.first_time()`](docs.md#await-vac_apifirst_timeuser) + - `womanyellingatcat()` -> [`.woman_yelling_at_cat()`](docs.md#await-vac_apiwoman_yelling_at_catwoman-cat) + - `icanmilkyou()` -> [`.i_can_milk_you()`](docs.md#await-vac_apii_can_milk_youuser-user2--none) + - `iamspeed()` -> [`.iam_speed()`](docs.md#await-vac_apiiam_speeduser) + - `emergencymeeting()` -> [`.emergency_meeting()`](docs.md#await-vac_apiemergency_meetingtext) + - `changemymind()` -> [`.change_my_mind()`](docs.md#await-vac_apichange_my_mindtext) + - `carreverse()` -> [`.car_reverse()`](docs.md#await-vac_apicar_reversetext) + - `dockofshame()` -> [`.dock_of_shame()`](docs.md#await-vac_apidock_of_shameuser) + - `distractedbf()` -> [`.distracted_bf()`](docs.md#await-vac_apidistracted_bfboyfriend-girlfriend-woman) + - `batmanslap()` -> [`.batman_slap()`](docs.md#await-vac_apibatman_slaptext-text2-batmannone-robinnone) + - `firsttime()` -> [`.first_time()`](docs.md#await-vac_apifirst_timeuser) ### v1.4.0 - December 9, 2020 diff --git a/docs.md b/docs.md index 9f39ea1..0cfd7e8 100644 --- a/docs.md +++ b/docs.md @@ -327,7 +327,7 @@ async def rank(ctx, member: discord.Member = None): with open('rank_stuff.json') as json_file: data = json.load(json_file) - user_rank = data[str(member.id)] # dict + user_rank = data[str(member.id)] # dict gen_card = await vac_api.rank_card( username = str(member), # wrapper will handle the # avatar = member.avatar_url_as(format = "png"), # converting avatar to .png, including .gif @@ -336,15 +336,15 @@ async def rank(ctx, member: discord.Member = None): current_xp = int(user_rank['current_xp']), next_level_xp = 500, # you will need calculate this according the current_xp previous_level_xp = 50, # you will need calculate this according the current_xp - custom_background = str(user_rank["background"]), # optional - xp_color = str(user_rank["bar_color"]), # optional + custom_background = str(user_rank["background"]), # optional + xp_color = str(user_rank["bar_color"]), # optional is_boosting = bool(member.premium_since), # optional circle_avatar = True # optional ) rank_image = discord.File(fp = await gen_card.read(), filename = f"{member.name}_rank.png") await ctx.send(f"{member.name}'s rank in {ctx.guild.name}", file = rank_image) -# custom_background, is_boosting, xp_color and circle_avatar are optional kwargs, see more in the docs. +# custom_background, is_boosting, xp_color and circle_avatar are optional, see more in the docs. ``` ##### [ejected](docs.md#await-vac_apiejectedname-crewmate--crewmatecolorsred-impostor--false) with [discord.py](https://github.com/Rapptz/discord.py): diff --git a/vacefron/client.py b/vacefron/client.py index 12bcc0c..7f399a5 100644 --- a/vacefron/client.py +++ b/vacefron/client.py @@ -5,7 +5,6 @@ from typing import Tuple, Union from urllib.parse import quote, urlencode -import discord from aiohttp import ClientSession from .classes import Image, RankCard, CrewMateColors