Skip to content

maxhu08/discord-bot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot-starter

info

A simple template for creating a discord bot.

getting-started

Create a discord bot on the discord developer portal here.

git clone https://github.com/maxhu08/discord-bot-starter
cd discord-bot-starter
bun i

Get your bot's token & client id from the developer portal page. Create a .env file with this structure and fill the BOT_TOKEN & CLIENT_ID with your bot's values.

# .env
BOT_TOKEN="..."
CLIENT_ID="..."

Go to https://discord.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot&permissions=0 to invite your bot to your server.

Start the bot by running:

bun start

That's it! Try running /ping!

About

🤖 simple template for creating discord bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published