-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
150 additions
and
34 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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
{ | ||
"name": "mikanbot-project", | ||
"module": "index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"format": "biome format --write ." | ||
}, | ||
"devDependencies": { | ||
"@types/bun": "latest", | ||
"prisma": "5.15.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
}, | ||
"dependencies": { | ||
"@biomejs/biome": "^1.8.2", | ||
"@prisma/client": "^5.15.1", | ||
"discord.js": "^14.15.3", | ||
"elysia": "^1.0.25" | ||
} | ||
"name": "mikanbot-project", | ||
"module": "index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"format": "biome format --write ." | ||
}, | ||
"devDependencies": { | ||
"@types/bun": "latest", | ||
"prisma": "5.15.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
}, | ||
"dependencies": { | ||
"@biomejs/biome": "^1.8.2", | ||
"@prisma/client": "^5.15.1", | ||
"canvafy": "^7.1.0", | ||
"discord.js": "^14.15.3", | ||
"elysia": "^1.0.25", | ||
"quick.db": "^9.1.7" | ||
} | ||
} |
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,17 @@ | ||
/* | ||
Warnings: | ||
- Added the required column `levelCard` to the `User` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "levelCard" TEXT NOT NULL; | ||
|
||
-- CreateTable | ||
CREATE TABLE "guildLvl" ( | ||
"id" TEXT NOT NULL, | ||
"level" INTEGER NOT NULL, | ||
"xp" INTEGER NOT NULL, | ||
|
||
CONSTRAINT "guildLvl_pkey" PRIMARY KEY ("id") | ||
); |
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,8 @@ | ||
/* | ||
Warnings: | ||
- Added the required column `rankColor` to the `User` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "rankColor" TEXT NOT NULL; |
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,8 @@ | ||
/* | ||
Warnings: | ||
- Added the required column `mdUID` to the `User` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "mdUID" TEXT NOT NULL; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { CommandInteraction } from "discord.js"; | ||
|
||
export default { | ||
name: "premping", | ||
description: "Ping but its premium!", | ||
cooldown: 0, | ||
isPremium: true, | ||
botPermissions: [], | ||
userPermissions: [], | ||
validations: [], | ||
slashCommand: { | ||
enabled: true, | ||
options: [], | ||
}, | ||
interactionRun: async (interaction: CommandInteraction) => { | ||
const ping = Math.abs(Math.round(interaction.client.ws.ping)); | ||
await interaction.reply("Loading..."); | ||
const roundtrip = Math.abs(Date.now() - interaction.createdTimestamp); | ||
interaction.editReply( | ||
`API Latency: ${ping}ms\nRoundtrip: ${roundtrip}ms`, | ||
); | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { PrismaClient } from "@prisma/client"; | ||
|
||
const prisma = new PrismaClient(); |
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,9 @@ | ||
const { QuickDB, MemoryDriver } = require("quick.db"); | ||
const memoryDriver = new MemoryDriver(); | ||
const db = new QuickDB({ driver: memoryDriver }); | ||
|
||
export default function setRatelimit (type, time, user) { | ||
if(type == "msg") { | ||
|
||
} | ||
} |
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