Skip to content

Commit

Permalink
wip: w2s draw from friends
Browse files Browse the repository at this point in the history
  • Loading branch information
suchencjusz committed Dec 27, 2024
1 parent 1c8f3f7 commit 91a7ff2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/filman_discord/endpoints/filmweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import hikari
import lightbulb

import logging

tracker_plugin = lightbulb.Plugin("Filmweb")


Expand Down Expand Up @@ -327,6 +329,21 @@ async def cancel_subcommand(ctx: lightbulb.SlashContext) -> None:

await ctx.respond(embed, flags=hikari.MessageFlag.EPHEMERAL)
return


# https://www.reddit.com/r/Discordjs/comments/10377qg/adding_the_possibility_to_mention_multiple_users/
# https://hikari-lightbulb.readthedocs.io/en/2.3.5/api_references/decorators.html#lightbulb.decorators.option

@tracker_group.child
@lightbulb.option("discord_users", "użytkownicy discorda", required=True, type=hikari.User)
@lightbulb.command("w2s", "wylosuj film z listy chcę obejrzeć dla użytkownika/użytkowników", pass_options=True)
@lightbulb.implements(lightbulb.SlashSubCommand)
async def w2s_subcommand(ctx: lightbulb.SlashContext, discord_users: hikari.User) -> None:
logging.info(discord_users)

await ctx.respond("WIP")
return



def load(bot: lightbulb.BotApp) -> None:
Expand All @@ -335,3 +352,4 @@ def load(bot: lightbulb.BotApp) -> None:

# @tracker_group.child
# @lightbulb.command("list", "lista powiadomień", pass_options=True)
import logging
2 changes: 1 addition & 1 deletion src/filman_discord/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def info_command(ctx: lightbulb.SlashContext) -> None:

embed.add_field(
name="Wersja i ostatnia aktualizacja",
value="`1.1.7Av` - `2024-12-04`",
value="`1.1.8 dev` - `2024-12-27`",
)

embed.add_field(
Expand Down

0 comments on commit 91a7ff2

Please sign in to comment.