From af893f7bca0bedeedd805099e9dd6fd90af988d9 Mon Sep 17 00:00:00 2001 From: Giovani Date: Tue, 27 Jul 2021 20:40:10 -0400 Subject: [PATCH] wip: add boilerplate code for pyvis --- main.py | 27 +++++++++++++++++++++++++++ requirements.txt | 9 +++++++++ 2 files changed, 36 insertions(+) create mode 100644 main.py create mode 100644 requirements.txt diff --git a/main.py b/main.py new file mode 100644 index 0000000..c4bb8bb --- /dev/null +++ b/main.py @@ -0,0 +1,27 @@ +import discord + +client = discord.Client() + +@client.event +async def on_ready(): + pass + +@client.event +async def on_message(message): + msg_str = message.content + print(msg_str) + pass + +client.run("") # pass the bot token here + +""" +from discord.ext import commands + +bot = commands.Bot(command_prefix='>') + +@bot.command() +async def ping(ctx): + await ctx.send('pong') + +bot.run('token') +""" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a847894 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +aiohttp==3.7.4.post0 +async-timeout==3.0.1 +attrs==21.2.0 +chardet==4.0.0 +discord.py==1.7.3 +idna==3.2 +multidict==5.1.0 +typing-extensions==3.10.0.0 +yarl==1.6.3