-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfmk.py
executable file
·36 lines (34 loc) · 982 Bytes
/
fmk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from common import *
from utils.check_channel_access import access_check
@bot.slash_command(
name="fmk",
description="Return 3 random Trek Characters as an FMK prompt"
)
@commands.check(access_check)
async def fmk(ctx:discord.ApplicationContext):
"""
This function is the main entrypoint of the /fmk command
and will return a prompt with three random characters
"""
f = open(config["commands"]["fmk"]["data"])
fmk_characters = f.read().splitlines()
f.close()
choices = random.sample(fmk_characters, k=3)
embed = discord.Embed(
title="Fuck, Marry, Kill (or Kiss)",
description=f"Who will it be?\n\nAggy selects:\n- {choices[0]}\n- {choices[1]}\n- {choices[2]}\n\nAggy thinks they'd:",
color=discord.Color.dark_gold()
)
embed.add_field(
name="Fuck",
value=choices[0]
)
embed.add_field(
name="Marry",
value=choices[1]
)
embed.add_field(
name="Kill (or Kiss)",
value=choices[2]
)
await ctx.respond(embed=embed)