wip: add boilerplate code for pyvis
This commit is contained in:
27
main.py
Normal file
27
main.py
Normal file
@@ -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')
|
||||
"""
|
||||
9
requirements.txt
Normal file
9
requirements.txt
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user