-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathembeds.js
96 lines (82 loc) · 4.54 KB
/
embeds.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
const { Client, PermissionsBitField, Permissions, TextInputComponent, MessageSelectMenu, UserSelectMenuBuilder, GatewayIntentBits, SlashCommandBuilder, PermissionFlagsBits, ChannelType, RoleSelectMenuBuilder, ButtonBuilder, ActionRowBuilder, EmbedBuilder } = require('discord.js')
const { config } = require('./config')
/*---------------------------------------------------------------------------------------------------------
* The BOT was created by lars. I hope those who use this BOT will keep the flooter part.
* The Author can be changed at will. If there are any improvements needed, please open a Pullrequest on Github.
* Thank you.
*/
const flooter = {
"text": "TempVCs by Larshagrid | ver 2023.12.18",
"iconURL": "https://cdn.discordapp.com/attachments/920732721981038712/986987686751506512/-1.jpg"
}
//----------------------------------------------------------------------------------------------------------
const Author = {
name: "拉斯的私人語音包廂助理",
iconURL: "https://cdn.discordapp.com/attachments/920732721981038712/986987686751506512/-1.jpg"
}
const HubEmbed = new EmbedBuilder()
.setTitle(`臨時私人語音聊天`)
.setColor(0x00B9FF)
.setDescription(
`加入 <#${config.HUBvcChannelID}> 來創建您自己的Temp VC,您將成為房主。 預設為顯示,除非手動點選按鈕開啟權限!`,
)
.setFooter(flooter)
const AdminForceDelete = new EmbedBuilder()
.setTitle(`管理員以使用修復指令!`)
.setDescription(`頻道將於 $timeLeft 刪除。`)
.setColor(0xe80000)
.setFooter(flooter)
const consoleembed = new EmbedBuilder()
.setTitle("臨時私人語音聊天控制")
.setDescription("**使用下面的按鈕可以快速更改一些設置!**. \n以下是按鈕的說明:\n\n使用 `Lock/Unlock` 鎖定 VC,以便只有列入白名單的用戶才能連接.\n使用 `Hide/Unhide` 將 VC 設為私有,以便只有列入白名單的用戶才能看到 VC。\n使用 `Mute/Unmute` 只允許白名單用戶發言,只影響新加入的用戶.\n使用 `Ban/Unban` 禁止指定用戶加入VC. \n使用 `Whitelist/Remove` 白名單.\n使用 `Limit` 限制可以加入的用戶數量.\n使用 `Change Owner` 轉讓包廂房主.\n使用 `Change Name` 將 VC 的名稱更改為您想要的任何名稱。 (記得遵守規則)\n使用 `Get Mention` 獲取語音邀請網址,立即邀請他們加入到語音頻道!!\n\n 轉讓房主會將原先的限制權限清除!!。")
.setColor(0x00B9FF)
.setFooter(flooter)
const Whitelisttembed = new EmbedBuilder()
.setTitle('白名單清單')
.setColor(0xaf40de)
.setAuthor(Author)
const banliste = new EmbedBuilder()
.setTitle('封鎖清單')
.setColor(0xaf40de)
.setAuthor(Author)
const predelete_Cancel = new EmbedBuilder()
.setTitle("刪除已取消!")
.setDescription(`排定的刪除程序已取消!`)
.setColor(0x02cf21)
.setAuthor(Author)
const predelete = new EmbedBuilder()
.setTitle("已排定刪除!")
.setDescription(`房主決定將 $tempVcId 刪除。 \n頻道將於 $timeLeft 刪除。 \n如要取消,請再次按下DeleteVC按鈕。`)
.setColor(0xff0000)
.setAuthor(Author)
const ownerLeave = new EmbedBuilder()
.setTitle("房主已離開語音包廂")
.setDescription(`房主已離開 $tempVcId。 \n頻道將於 $timeLeft 刪除。 \n如要取消,請重新加入語音頻道。`)
.setColor(0x00B9FF)
.setFooter(flooter)
.setAuthor(Author)
const ownerLeavegivenext = new EmbedBuilder()
.setTitle("房主已離開語音包廂")
.setDescription(`房主已離開 $tempVcId。 \n房主將於 $timeLeft 賦予下一位用戶,若無人將自動刪除。 \n如要取消,請重新加入語音頻道。`)
.setColor(0x00B9FF)
.setFooter(flooter)
.setAuthor(Author)
const NewOwner = new EmbedBuilder()
.setTitle("新房主!")
.setDescription(`前個房主已離開 3 分鐘。 \n此頻道以自動延順房主給: $user 。 \n\n如找不到控制台,請使用 $command `)
.setColor(0x00B9FF)
.setFooter(flooter)
.setAuthor(Author)
module.exports = {
embedFlooter: flooter,
template_createHubEmbed: HubEmbed,
template_adminDeleteEmbed: AdminForceDelete,
template_controlsEmbed: consoleembed,
template_whitelist_Embed: Whitelisttembed,
template_banlist_Embed: banliste,
template_CancelPreDelete_Embed: predelete_Cancel,
template_predelete_Embed: predelete,
template_ownerLeave_Embed: ownerLeave,
template_ownerLeaveNext_Embed: ownerLeavegivenext,
template_ownerNew_Embed: NewOwner,
}