Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arzoka/untitledpetgatcha
https://github.com/arzoka/untitledpetgatcha
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/arzoka/untitledpetgatcha
- Owner: Arzoka
- Created: 2024-06-16T19:40:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-16T19:56:27.000Z (7 months ago)
- Last Synced: 2024-06-16T20:59:48.345Z (7 months ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Untitledpetgatcha
(doesnt have a name yet)## Description
This is a discordjs bot that allows rolling for pets, daily rewards, and 10+ commands. This was a silly little weekend side-project and will most likely be getting updated from now on as I'm really enjoying it.
## Installation
1. Clone the repository
2. Run `npm install`
3. Create a `.env` file in the root directory and add the following
```
DATABASE_URL=your_database_url
DIRECT_URL=your_direct_database_url
```
4. Run npx prisma migrate dev
5. Run npx prisma db push
6. Run npx prisma generate
7. Run `npm run deploy-cmds`
8. Run `npm run dev`## Dependancies
- discord.js
- dotenv
- prisma
- supabase## How does it work?
- The bot uses discordjs to listen to and register commands.
- supabase for the database, as its free for a limited amount of data and works well with Prisma.
- prisma to interact with the database.
- dotenv to load environment variables from a .env file.
- Currently using javascript, planning to switch to typescript soon as in my opinion it's a much nicer development experience.