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]))