Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Discord bot uses
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
print(f'Logged in as {bot.user.name} ({bot.user.id})')
print('------')

@bot.command()
async def hello(ctx):
await ctx.send('Hello, I am your Discord bot!')

bot.run('BOT_TOKEN')