Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxhu08/discord-bot-starter
🤖 simple template for creating discord bot
https://github.com/maxhu08/discord-bot-starter
bot discord discord-bot discordjs
Last synced: about 2 months ago
JSON representation
🤖 simple template for creating discord bot
- Host: GitHub
- URL: https://github.com/maxhu08/discord-bot-starter
- Owner: maxhu08
- Created: 2024-08-19T01:02:07.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-19T01:23:56.000Z (5 months ago)
- Last Synced: 2024-10-13T02:41:42.459Z (3 months ago)
- Topics: bot, discord, discord-bot, discordjs
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-bot-starter
## info
A simple template for creating a discord bot.
## getting-started
Create a discord bot on the discord developer portal [here](https://discord.com/developers/applications).
```shell
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.
```python
# .env
BOT_TOKEN="..."
CLIENT_ID="..."
```Go to `https://discord.com/oauth2/authorize?client_id=&scope=bot&permissions=0` to invite your bot to your server.
Start the bot by running:
```shell
bun start
```That's it! Try running `/ping`!