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