From cdff52af8862f0f83caf9b2e1844e2936c5bec91 Mon Sep 17 00:00:00 2001 From: attilavs2 Date: Sat, 17 Feb 2024 21:43:21 +0100 Subject: [PATCH] plenty commit --- .gitignore | 2 ++ ecoplus.py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ecoplus.py diff --git a/.gitignore b/.gitignore index 68bc17f..c1d5865 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +start.sh + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/ecoplus.py b/ecoplus.py new file mode 100644 index 0000000..be49c51 --- /dev/null +++ b/ecoplus.py @@ -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]))