1
0
mirror of https://gitlab.com/MisterBiggs/multi-bot-tutorial.git synced 2025-08-03 12:01:34 +00:00

discord bot boilerplate

This commit is contained in:
2019-07-11 21:57:30 -07:00
parent fe4ffba031
commit f2fcc040fe

View File

@@ -0,0 +1,21 @@
import discord
client = discord.Client()
@client.event
async def on_ready():
print("We have logged in as {0.user}".format(client))
@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")