flair cog

This commit is contained in:
2022-01-03 13:55:51 +01:00
parent 9b489bcbd1
commit d76aac181b

52
cogs/flair.py Normal file
View File

@@ -0,0 +1,52 @@
import discord
from discord.ext import commands
from logging import getLogger
import asyncio
# setup logging
log = getLogger(__name__)
e = discord.Embed()
class Flair(commands.Cog):
""" The Flair functionality enables the user to setup flair for their profile.
Currently, the flair-roles available are:
- gender pronouns
- willingness to join mature discussions
- whether or not they are open for DMs
"""
def __init__(self, bot):
self.bot = bot
self.msg1 = ['', '', '']
@commands.command()
async def flair(self, ctx):
msg1 = (
f'Welkom bij de flair-wizard! Gebruik onderstaande opties om verder te gaan. \n\n'
f'Druk op ✅ als je verder wil gaan met de wizard.\n'
f'Als je niet je flair opnieuw wilt instellen, druk dan op ❌.\n'
f'Gebruik ❔ als je wil weten hoe je via een tekstcommando alles kan instellen.\n\n'
)
dm = await ctx.author.send(msg1)
log.info(f'{ctx.author} started the flair wizard')
for emoji in self.msg1:
await dm.add_reaction(emoji)
@commands.Cog.listener()
async def on_ready(self):
log.info(f'module active')
def setup(bot):
bot.add_cog(Flair(bot))
# numbers_reactions = ['1⃣', '2⃣', '3⃣', '4⃣', '5⃣', '6⃣']