blob: 9745aa5d8cb085063b7a10d58406ea71b73c397f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from discord.ext import commands
import discord
import asyncio
class Welcome(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_member_join(self, member):
server = member.guild
welcome_channel = self.bot.get_channel(740051039499059271)
await welcome_channel.send(f"Welcome {member.mention}, to {server.name}! <:PogChamp:740102448047194152>")
@commands.command(aliases=['test'])
async def _test(self, ctx):
welcome_channel = self.bot.get_channel(740051039499059271)
await welcome_channel.send("test")
def setup(bot):
bot.add_cog(Welcome(bot))
|