<gh_stars>10-100
# -*- coding: utf-8 -*-

import discord
from discord.ext.commands import Bot

from src.mp3_verification import code_verify


# Le token de votre Bot Discord:
token = "TOKEN"


intents = discord.Intents.all()
intents.members = True



keter = Bot(command_prefix = "keter", description = "keter", intents=intents)


verified = {}



@keter.event
async def on_ready():
    await keter.change_presence(activity=discord.Game(name='src -> github.com/billythegoat356/Keter'))
    print("Prêt!")



@keter.listen()
async def on_message(message):
    
    
    author = message.author
    channel = message.channel

    print(message.content)

    if author.id in verified and verified[author.id][0] == False:
        if message.content == verified[author.id][1]:
            await channel.send(content="Vous êtes maintenant vérifié!")
            del verified[author.id]
        else:
            await channel.send(content="Code invalide!")



    if message.content == "*verify":
        code = await code_verify(channel)
        verified[author.id] = [False, code]













keter.run(token)

# -*- coding: utf-8 -*-

import discord
from discord.ext.commands import Bot

from src.mp3_verification import code_verify


# Le token de votre Bot Discord:
token = "TOKEN"


intents = discord.Intents.all()
intents.members = True



keter = Bot(command_prefix = "keter", description = "keter", intents=intents)


verified = {}



@keter.event
async def on_ready():
    await keter.change_presence(activity=discord.Game(name='src -> github.com/billythegoat356/Keter'))
    print("Prêt!")



@keter.listen()
async def on_message(message):
    
    
    author = message.author
    channel = message.channel

    print(message.content)

    if author.id in verified and verified[author.id][0] == False:
        if message.content == verified[author.id][1]:
            await channel.send(content="Vous êtes maintenant vérifié!")
            del verified[author.id]
        else:
            await channel.send(content="Code invalide!")



    if message.content == "*verify":
        code = await code_verify(channel)
        verified[author.id] = [False, code]













keter.run(token)
# -*- coding: utf-8 -*- # Le token de votre Bot Discord: