summaryrefslogtreecommitdiff
path: root/main.py
blob: 6c1b2b44f7317cfcaf33c309ac64a9e89e71df14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os, discord

intents = discord.Intents.default()
intents.message_content = True

token = os.getenv("DISCORD_TOKEN")
client = discord.Client(intents=intents)

channelids = [1196201613132574733]

@client.event
async def on_ready():
	print(f"Logged in as {client.user}")

@client.event
async def on_message(message):
	if message.channel.id in channelids:
		print(f"<{message.author.global_name}> {message.content}")

client.run(token)