plenty commit

This commit is contained in:
attilavs2 2024-02-17 21:43:21 +01:00
parent 8d5c752833
commit cdff52af88
2 changed files with 23 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
start.sh
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]

21
ecoplus.py Normal file
View file

@ -0,0 +1,21 @@
import sys
import discord
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
@client.event
async def on_ready():
print(f'We have logged in as {client.user}')
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('$hello'):
await message.channel.send('Hello!')
client.run(str(sys.argv[1]))