diff --git a/README.md b/README.md index e69de29..178bc6d 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,8 @@ + + +# Matchy + +## Dependencies + +* python3 +* discord.py python module \ No newline at end of file diff --git a/matchy.py b/matchy.py new file mode 100644 index 0000000..40a2020 --- /dev/null +++ b/matchy.py @@ -0,0 +1,22 @@ +# This example requires the 'message_content' intent. + +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('your token here') \ No newline at end of file