Skip to content

Commit 127b948

Browse files
committed
add: guild premium data table
1 parent 5092830 commit 127b948

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- TypeScript Language To Avoid Errors In Production
2323
- Advanced Music System With Buttons
2424
- Song Request Channel
25+
- Multi bot account support
2526
- 24/7 Mode
2627
- Multi Language
2728
- Slash Commands

example.app.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ bot:
1010
# You can add more than 1 token to clone the bot
1111
# Note that performance will be dreaded and you can't set each config for each cloned bot
1212
# Config data of each bot will be the same
13-
TOKEN:
14-
- "Bot Token 1"
15-
# - "Bot token 2"
13+
TOKEN: ["Bot Token 1"]
1614
OWNER_ID: "Your User ID"
1715

1816
lavalink:

example.full.app.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ bot:
88
# You can add more than 1 token to clone the bot
99
# Note that performance will be dreaded and you can't set each config for each cloned bot
1010
# Config data of each bot will be the same
11-
TOKEN:
12-
- "Bot Token 1"
13-
# - "Bot token 2"
11+
TOKEN: ["Bot Token 1"]
1412
EMBED_COLOR: "#2B2D31"
1513
OWNER_ID: "Your User ID"
1614
ADMIN: ["<your_trusted_admin_discord_id_here>"]

src/database/@types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { Status } from "./schema/Status.js";
88
import { Prefix } from "./schema/Prefix.js";
99
import { SongNoti } from "./schema/SongNoti.js";
1010
import { QuickDatabasePlus } from "../structures/QuickDatabasePlus.js";
11+
import { GuildPremium } from "./schema/GuildPremium.js";
1112

1213
export interface DatabaseTable {
1314
autoreconnect: QuickDatabasePlus<AutoReconnect>;
1415
playlist: QuickDatabasePlus<Playlist>;
1516
code: QuickDatabasePlus<Code>;
1617
premium: QuickDatabasePlus<Premium>;
18+
preGuild: QuickDatabasePlus<GuildPremium>;
1719
setup: QuickDatabasePlus<Setup>;
1820
language: QuickDatabasePlus<Language>;
1921
status: QuickDatabasePlus<Status>;

src/database/schema/GuildPremium.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Guild } from "discord.js";
2+
3+
export interface GuildPremium {
4+
id: string;
5+
isPremium: boolean;
6+
redeemedBy: Guild;
7+
redeemedAt: number;
8+
expiresAt: number | "lifetime";
9+
plan: string;
10+
}

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { ConfigDataService } from "./services/ConfigDataService.js";
33
const configData = new ConfigDataService().data;
44
configData.bot.TOKEN.forEach((token, index) => {
55
new Manager(configData, index, configData.features.MESSAGE_CONTENT.enable).login(token);
6-
});
6+
});

0 commit comments

Comments
 (0)