-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stars, test, black format, last10 wip
- Loading branch information
1 parent
dec262d
commit 103e025
Showing
21 changed files
with
402 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.black] | ||
line-length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import hikari | ||
import lightbulb | ||
|
||
def last10(media: list, typ: str) -> hikari.Embed: | ||
|
||
|
||
|
||
# movies = sorted(movies, key=lambda x: datetime.strptime(x["date"], "%Y-%m-%dT%H:%M:%S"), reverse=True) | ||
|
||
# if len(movies) == 0: | ||
# embed = hikari.Embed( | ||
# title=f"Nie oceniono jeszcze ΕΌadnych filmΓ³w!", | ||
# colour=0xFF4400, | ||
# timestamp=datetime.now().astimezone(), | ||
# ) | ||
# embed.set_footer( | ||
# text=f"Requested by {ctx.author}", | ||
# icon=ctx.author.display_avatar_url, | ||
# ) | ||
# await ctx.respond(embed) | ||
# return | ||
|
||
# # to do: movies != 0 | ||
|
||
# if len(movies) > 10: | ||
# movies = movies[0:25] | ||
# else: | ||
# movies = movies[0:len(movies)] | ||
|
||
# embed = hikari.Embed( | ||
# title=f"Ostatnio ocenione filmy", | ||
# colour=0xFFC200, | ||
# timestamp=datetime.now().astimezone(), | ||
# ) | ||
|
||
# temp_star_list = "" | ||
|
||
# for movie in movies: | ||
# temp_star_list += f"{star_emoji_counter(movie['rate'])} {movie[typ]['title']} ({movie[typ]['year']})\n" | ||
|
||
# embed.add_field( | ||
# name="Filmy", | ||
# value=temp_star_list, | ||
# inline=False, | ||
# ) | ||
|
||
|
||
# embed.set_footer( | ||
# text=f"Requested by {ctx.author}", | ||
# icon=ctx.author.display_avatar_url, | ||
# ) | ||
|
||
# await ctx.respond(embed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.