aboutsummaryrefslogtreecommitdiff
path: root/cogs/welcome.py
diff options
context:
space:
mode:
authorziro <palembani@gmail.com>2020-08-05 03:53:17 +0000
committerziro <palembani@gmail.com>2020-08-05 03:53:17 +0000
commitc69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc (patch)
tree8b0c2fd8fecb9df61b33bd5998aafc0425b34070 /cogs/welcome.py
parent7e3f3e006d3cf29001e3990375d028dc9c91b757 (diff)
downloadsteve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.gz
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.bz2
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.lz
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.xz
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.zst
steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.zip
+ Tweaking
Diffstat (limited to 'cogs/welcome.py')
-rw-r--r--cogs/welcome.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/cogs/welcome.py b/cogs/welcome.py
new file mode 100644
index 0000000..9745aa5
--- /dev/null
+++ b/cogs/welcome.py
@@ -0,0 +1,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))