on_member_join only affects Enso

pull/4/head
sgoudham 4 years ago
parent b816124ee7
commit 08d4a6ae8f

@ -5,7 +5,6 @@ import discord
from decouple import config
from discord import Embed, Colour
from discord.ext import commands
from discord.ext.commands import is_owner
import settings
@ -49,7 +48,7 @@ async def on_ready():
# Bot ~Ping command in milliseconds
@client.command(name="ping", aliases=["Ping"])
@is_owner()
@commands.is_owner()
async def ping(ctx):
"""Send the latency of the bot (ms)"""
await ctx.send(f'Ping Pong! {round(client.latency * 1000)}ms')
@ -59,7 +58,11 @@ async def ping(ctx):
@client.event
async def on_member_join(member):
# Set the channel id to "newpeople"
new_people = client.get_channel(669771571337887765)
guild = member.guild
if guild.id == 663651584399507476:
return
else:
new_people = guild.get_channel(669771571337887765)
# Set the enso server icon and the welcoming gif
server_icon = "https://media.discordapp.net/attachments/683490529862090814/715010931620446269/image1.jpg?width=658&height=658"

Loading…
Cancel
Save