import discord
import os
from discord.ext import commands
from worker import keep_alive
intents = discord.Intents.all()
PREFIX = '!'
client = commands.Bot(command_prefix = PREFIX)
client.remove_command('help')
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
#hi
@client.event
async def on_member_join(member):
print('join')
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")
keep_alive()
client.run(os.getenv("BOT_TOKEN"))