Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Soheab committed Jan 8, 2021
1 parent 722bf5f commit 9041e0e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
23 changes: 12 additions & 11 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down
1 change: 0 additions & 1 deletion vacefron/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9041e0e

Please sign in to comment.