-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
4,230 additions
and
1,973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,6 @@ backup | |
|
||
.vscode | ||
|
||
# Database | ||
|
||
db.sqlite | ||
db.sqlite-journal | ||
# Yarn | ||
cache | ||
install-state.gz |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "salim-bot", | ||
"version": "4.1.1193", | ||
"version": "4.2.1300", | ||
"description": "This bot is Salim. Whenever you trigger it, It become mad.", | ||
"type": "module", | ||
"main": "dist/bot.js", | ||
|
@@ -23,24 +23,25 @@ | |
"homepage": "https://github.com/Leomotors/Salim-Bot", | ||
"devDependencies": { | ||
"@leomotors/scripts": "^3.1.0", | ||
"@trivago/prettier-plugin-sort-imports": "^3.2.0", | ||
"@types/node": "^18.0.0", | ||
"@trivago/prettier-plugin-sort-imports": "^3.3.0", | ||
"@types/node": "^18.0.6", | ||
"@types/uuid": "^8.3.4", | ||
"@typescript-eslint/eslint-plugin": "^5.30.0", | ||
"@typescript-eslint/parser": "^5.30.0", | ||
"eslint": "^8.18.0", | ||
"@typescript-eslint/eslint-plugin": "^5.30.7", | ||
"@typescript-eslint/parser": "^5.30.7", | ||
"eslint": "^8.20.0", | ||
"prettier": "^2.7.1", | ||
"prisma": "^4.0.0", | ||
"prisma": "^4.1.0", | ||
"typescript": "^4.7.4" | ||
}, | ||
"dependencies": { | ||
"@discordjs/opus": "^0.7.0", | ||
"@prisma/client": "4.0.0", | ||
"@discordjs/opus": "^0.8.0", | ||
"@prisma/client": "4.1.0", | ||
"chalk": "^5.0.1", | ||
"cocoa-discord-utils": "^1.9.0", | ||
"discord.js": "^13.8.1", | ||
"cocoa-discord-utils": "^2.0.0", | ||
"discord.js": "^14.0.3", | ||
"libsodium-wrappers": "^0.7.10", | ||
"s-bot-framework": "^1.0.430", | ||
"s-bot-framework": "^1.1.444", | ||
"uuid": "^8.3.2" | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
32 changes: 32 additions & 0 deletions
32
prisma/migrations/20220721131242_1300_add_profile_and_cooldown/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- ChangeTableName | ||
ALTER TABLE "User" RENAME TO "user"; | ||
ALTER TABLE "user" DROP COLUMN "username"; | ||
|
||
-- CreateTable | ||
CREATE TABLE "profile" ( | ||
"user_id" TEXT NOT NULL, | ||
"username" TEXT NOT NULL, | ||
"registered_guild" TEXT NOT NULL, | ||
"last_interact_guild" TEXT NOT NULL | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "cooldown" ( | ||
"userId" TEXT NOT NULL, | ||
"essay_to_dad" TIMESTAMP(3) | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "user_id_key" ON "user"("id"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "profile_user_id_key" ON "profile"("user_id"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "cooldown_userId_key" ON "cooldown"("userId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "profile" ADD CONSTRAINT "profile_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "cooldown" ADD CONSTRAINT "cooldown_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
12 changes: 12 additions & 0 deletions
12
prisma/migrations/20220721142140_1300_add_essay_table/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- CreateTable | ||
CREATE TABLE "essay" ( | ||
"userId" TEXT NOT NULL, | ||
"content" TEXT NOT NULL, | ||
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "essay_userId_key" ON "essay"("userId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "essay" ADD CONSTRAINT "essay_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ export enum Actions { | |
DuplicateTrain = -10, | ||
TrainQuote = 15, | ||
QuizVar = 112, | ||
EssayToDad = 9, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.