Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nizos/dbwebb-bot
Discord bot for BTH Webbprogrammering
https://github.com/nizos/dbwebb-bot
Last synced: 1 day ago
JSON representation
Discord bot for BTH Webbprogrammering
- Host: GitHub
- URL: https://github.com/nizos/dbwebb-bot
- Owner: nizos
- Created: 2021-09-16T15:43:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T17:24:25.000Z (over 3 years ago)
- Last Synced: 2024-11-06T10:25:17.981Z (about 2 months ago)
- Language: TypeScript
- Size: 284 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dbwebb-bot
Discord bot for BTH Webbprogrammering
## Instructions
Create a `.env` file in the root of the project directory and specify the following values:
```txt
BOT_PREFIX=""
BOT_TOKEN=""
```Build and run the application:
```bash
npm install
npm run dev
```## Step by Step Guide
### Create a Discord Bot
1. Open [Discord Developer Portal](https://discord.com/developers) and sign in if needed.
2. Click the **Applications** sidebar menu-item and then click on the **New Application** button.
3. Give your application a name and then click the **Create** button.
4. Click the **Bot** sidebar menu-item and then click the **Add Bot** button.
### Set the Bot Token
1. Click the **Copy** button in the **TOKEN** section to copy your Bot's token to your clipboard. \
***NOTE!*** *Keep your token safe, don't share it!*2. Replace `` in the `.env` file with the token that you just copied.
### Invite the Bot
1. Click the **OAuth2** sidebar menu-item.
* Leave the **SELECT REDIRECT URL** field blank.
* Check the following boxes under **SCOPES**:
* Send Messages
* Manage Embeds
* Embed Links
* Read Message History
* View Channels
* Click the **Copy** button at the bottom of the **SCOPES** form.2. Open the copied link in a browser and add the bot to your Discord server.
### Interact with the Bot
Build and run the application and then type `!ping` in the Discord server. The Bot should reply with `pong`.