async def on_raw_reaction_add(self, payload : discord.RawReactionActionEvent):
intents = discord.Intents.default()
intents.members = True
keep_alive()
client.run(os.getenv("BOT_TOKEN"))
@bot.command()
async def mention_role(ctx, role_name):
server = ctx.guild
role = discord.utils.get(server.roles, name=role_name)
await ctx.send(role.mention)
@client.event
async def on_member_join(member):
print(f'{member.mention} has joined the server.')
channel = client.get_channel(919319558202998855)
join = discord.Embed(description=f"{member.mention} Welcome To The Club Buddy!", color=discord.Colour.random())
join.set_image(url="https://tenor.com/beeFU.gif")
await channel.send(embed=join)