mirror of https://github.com/stijndcl/didier
Remind now shows active categories
parent
a82af035fc
commit
0db835bba0
|
@ -20,9 +20,12 @@ class Remind(commands.Cog):
|
|||
Command group to remind the user of a certain thing every day.
|
||||
:param ctx: Discord Context
|
||||
"""
|
||||
categories = ["Les", "Nightly"]
|
||||
embed = discord.Embed(colour=discord.Colour.blue())
|
||||
rows = remind.getOrAddUser(ctx.author.id)
|
||||
|
||||
# TODO use a loop for this when not lazy
|
||||
categories = [remind.getIcon(rows[1]) + " Nightly", remind.getIcon(rows[2]) + " Les"]
|
||||
|
||||
embed = discord.Embed(colour=discord.Colour.blue())
|
||||
embed.set_author(name="Remind Categorieën")
|
||||
embed.description = "\n".join(sorted(categories))
|
||||
|
||||
|
|
|
@ -41,3 +41,8 @@ def switchReminder(userid, column):
|
|||
|
||||
return to
|
||||
|
||||
|
||||
# Function that returns a red or green circle depending on
|
||||
# whether or not a value is True or False
|
||||
def getIcon(val):
|
||||
return ":green_circle:" if val else ":red_circle:"
|
||||
|
|
Loading…
Reference in New Issue