Skip to content

Commit

Permalink
Update quizgame.py
Browse files Browse the repository at this point in the history
  • Loading branch information
New-dev0 authored May 13, 2024
1 parent 53caaae commit fef98d2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions plugins/quizgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

from .. import Button, asst, async_searcher, get_string, inline_mention

GIMAGES = [
"https://graph.org/file/1c51015bae5205a65fd69.jpg",
"https://imgwhale.xyz/3xyr322l64j9590",
]


@asst_cmd(pattern="startgame", owner=True)
async def magic(event):
Expand All @@ -27,7 +22,7 @@ async def magic(event):
]
await event.reply(
get_string("games_1"),
file=choice(GIMAGES),
file="https://graph.org/file/1c51015bae5205a65fd69.jpg",
buttons=buttons,
)

Expand Down Expand Up @@ -85,7 +80,7 @@ async def choose_cata(event):
elif match[0] == "d":
cat = match[1:]
buttons = [[Button.inline(i, f"trziac{cat}_{i}") for i in DIFI_KEYS]]
buttons.append(Button.inline("Back", "trzia"))
buttons.append([Button.inline("Back", "trzia")])
text = get_string("games_3")
elif match[0] == "c":
m = match[1:]
Expand Down Expand Up @@ -146,7 +141,7 @@ async def choose_cata(event):
solution="Join @TeamUltroid",
solution_entities=[],
)
m_ = await event.client.send_message(chat, file=poll)
m_ = await event.client.send_file(chat, file=poll)
POLLS.update(
{m_.poll.poll.id: {"chat": m_.chat_id, "answer": ansi}})
await asyncio.sleep(int(in_))
Expand Down

0 comments on commit fef98d2

Please sign in to comment.