https://github.com/playfulprogramming/discord-bot
A custom bot for the Unicorn Utterances community
https://github.com/playfulprogramming/discord-bot
Last synced: 5 months ago
JSON representation
A custom bot for the Unicorn Utterances community
- Host: GitHub
- URL: https://github.com/playfulprogramming/discord-bot
- Owner: playfulprogramming
- License: mit
- Created: 2023-04-10T01:43:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T01:57:00.000Z (over 2 years ago)
- Last Synced: 2025-07-27T19:40:23.099Z (6 months ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-bot
A custom bot for the Unicorn Utterances community
## Prerequisites
Before you can use this bot, you need to have the following installed on your computer:
- [Node.js](https://nodejs.org/) (version 16 or higher)
- [PNPM](https://pnpm.io/) (version 7 or higher)
## Getting Started
To get started, follow these steps:
1. Clone this repository to your local machine:
```shell
git clone https://github.com/unicorn-utterances/discord-bot.git
```
2. Navigate to the project directory:
```shell
cd discord-bot
```
3. Install the dependencies using PNPM:
```shell
pnpm install
```
4. Copy the `.env.example` file to `.env`:
```shell
cp .env.example .env
```
5. Edit the `.env` file and set the `DISCORD_BOT_TOKEN` and `DISCORD_CLIENT_ID` environment variables to the values for your bot.
6. Update the database:
```shell
pnpm db:update
```
7. Build the code:
```shell
pnpm build
```
8. Start the bot:
```shell
pnpm start
```
## Development
To develop this bot further, you can modify the code in the `src` directory. You can also modify the Prisma schema in the `prisma/schema.prisma` file.
After making changes, you need to rebuild the code using `pnpm build` and restart the bot using `pnpm start`.
## License
This template is licensed under the MIT License. See the `LICENSE` file for more information.