forked from MelnCat/DBRewrite
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHowToUse.yml
More file actions
27 lines (22 loc) · 1.22 KB
/
HowToUse.yml
File metadata and controls
27 lines (22 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Bot Config setup:
- Go to the config directory Then,
- Copy the config.hsjon.example file Then rename it to just
"config.hsjson" Then, go into the file put your token into the "" Then,
- Your main server ID is put into the "" Then,
- For your Database URL keep the first line the same, like this - postgresql://Username:password@localhost:5432/DBName?schema=public Then,
- make sure you include the 2 emoji ids!
Next,
Starting the bot:
Run These commands: Might only need to run these once Before Starting the bot
- "yarn prisma:generate" // You'll need to Do this After you edit the schema.prisma File
- "yarn prisma:push" // You'll use this to make the Database you defined Before startup
(don't forget to create a .env file, defining DATABASE_URL=<your url>)
Then,
- To start the bot go to the dist directory and start "index.js" with pm2
Extra:
And, use "node genenv" To generate something
In the prisma Directory Open up the schema.prisma With VSC (or any type of editor you use)
Keep everything default But, under the provider = prisma-client-js
Put binaryTargets ["native", "Type"]
You'll get an error Anyways So you'll know what to Replace the "type" with
Then, load up the bot and see if you get any errors!