├── README.md
├── ban.cmd
├── config_commands
├── kick.cmd
├── mute.cmd
├── purge.cmd
└── warn.cmd
/README.md:
--------------------------------------------------------------------------------
1 | # BDFD Moderation Commands
2 | > [!CAUTION]
3 | > This code may be outdated and has bugs. This code is too old and unstable, will soon publish a better repo with a better system. Will be aoi.js and BDFD compatible.
4 | BDFD is a program where you can code Discord Bots easily. I made this repository to give you guys my most advanced moderation commands.
5 |
6 | ## ALERT!
7 | **
There are the codes in the same file based on thier categories!
**
8 |
9 | Discord Bots Dévelopment Ⓒ︎ 2021
10 |
11 | This is the **`Source Code`** of **[BDFD](https://botdesignerlist.com)** program, this repo contains **Advance Moderation Codes**. This repo is created because there are many new people who don't know how to code and create stuff, so the team **[Discord Bots Dévelopment](https://dsc.gg/official_dbd)** decided to give their own custom made code for themselves. we would definitely not share our codes to other people, but we felt bad for others so we made this repo to help people.
12 | **Things You Can/Can't do:**
13 |
14 | **What You Can't Do, Is:**
15 | ❌ Can not distribute this code.
16 | ❌ Can not take credits of this Advance Code.
17 | ❌ You can not give credits to some other teams.
18 | ❌ Can not sell these codes for money or other currencies.
19 |
20 | **What You Can Do, Is:**
21 | ✅ Use it for public/private use.
22 | ✅ Give credits to **Discord Bots Dévelopment** for the code.
23 | ✅ Can help change these codes with our team.
24 | ✅ Share this repo with other new programmers.
25 |
26 | =========================
27 |
28 | Join our servers, **[JSTAR's Wikis](https://dsc.gg/wikis)** & **[Discord Bots Dévelopment](https://dsc.gg/official_dbd)**
29 | If you want help join our **[Support Server](https://dsc.gg/wikis)** where we help with our codes, other codes, provide cool features such as, add your bot & test them, get some codes from other channels, ask for codes, get notified when we update/post a new repo, participate in **BOTW**/**Bot Of The Week** contest every week, get support of any coding languages: **`JavaScript`**, **`Python`**, **`Aoi.JS`**, and **`BDFD`**, and more! Join Now, Make sure to star our repo!
30 | 
31 |
32 | Discord Bots Dévelopment Ⓒ︎ 2021
33 |
--------------------------------------------------------------------------------
/ban.cmd:
--------------------------------------------------------------------------------
1 | //Bans A User Command
2 | //Prefix: (your_prefix)ban
3 | //Language: BDScript
4 | ---------------------------
5 | $nomention
6 | $onlyBotPerms[banmembers;admin;** | I must have the `Ban Members` or `Administrator` permission to do this!**]
7 | $onlyIf[$mentioned[<]!=$authorID; **| You can't ban yourself!**]
8 | $onlyIf[$mentioned[<]!=$botID; **| You can't ban me by me! bruh lol.**]
9 | $argsCheck[>1; **| Please mention someone! Usage: `>ban <@user> `**]
10 | $onlyPerms[ban;admin;** | You must have the `Ban Members` or `Administrator` permission to run this command!**]
11 | $author[Banned $username[$mentioned[1]]]
12 | $authorIcon[$userAvatar[$mentioned[1]]]
13 | $thumbnail[https://media.discordapp.net/attachments/828263511678255168/864866654831771658/1626270615078.png]
14 | $description[
15 | **$username[$mentioned[1]]** was banned by **$username**.
16 | **__Offender:__**
17 | <@$mentioned[1]>
18 | **__Moderator:__**
19 | <@$authorID>
20 | **__Reason:__**
21 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
22 | ]
23 | $ban[$username#$discriminator[$authorID]: $replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1] | Banned User ID " $mentioned[1] ".]
24 | $color[00FFFF]
25 | $addTimestamp
26 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
27 | $suppressErrors[ **| Couldn't find the user. Usage `>ban <@user> `**]
28 |
29 | ===========================
30 |
31 | //DMs Banned User
32 | //Prefix: (your_prefix)ban
33 | //Language: BDScript
34 | ---------------------------
35 | $nomention
36 | $onlyBotPerms[banmembers;admin;** | I must have the `Ban Members` or `Administrator` permission to do this!**]
37 | $onlyIf[$mentioned[<]!=$botID;]
38 | $onlyIf[$mentioned[<]!=$authorID;]
39 | $argsCheck[>1;]
40 | $onlyPerms[ban;admin;]
41 | $dm[$mentioned[1]]
42 | $author[Banned]
43 | $authorIcon[https://media.discordapp.net/attachments/828263511678255168/864866654831771658/1626270615078.png]
44 | $thumbnail[$serverIcon]
45 | $description[You were banned by **$username** in **$serverName[$guildID]**.
46 | **__Moderator:__**
47 | <@$authorID>
48 | **__Reason:__**
49 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
50 | ]
51 | $color[00FFFF]
52 | $addTimestamp
53 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
54 | $suppressErrors[]
55 |
56 | ===========================
57 |
58 | //UnBan User Command
59 | //Prefix: (your_prefix)unban
60 | //Language: BDScript
61 | ---------------------------
62 | $nomention
63 | $onlyBotPerms[banmembers;admin;** | I must have the `Ban Members` or `Administrator` permission to do this!**]
64 | $onlyIf[$isNumber[$message[1]]==true;** | Please type the correct id.**]
65 | $onlyIf[$mentioned[<]!=$authorID; **| You are not banned and can't unban yourself!**]
66 | $onlyIf[$mentioned[<]!=$botID; **| You can't unban me by me! bruh lol.**]
67 | $argsCheck[>1; **| Please mention someone! Usage: `>unban `**]
68 | $onlyPerms[ban;admin;** | You must have the `Ban Members` or `Administrator` permission to run this command!**]
69 | $author[Unbanned $username[$message[1]]]
70 | $authorIcon[$userAvatar[$message[1]]]
71 | $thumbnail[https://media.discordapp.net/attachments/828263511678255168/864866654831771658/1626270615078.png]
72 | $description[
73 | **$username[$message[1]]** was unbanned by **$username[$authorID]**.
74 | **__Unbanned:__**
75 | <@$message[1]>
76 | **__Moderator:__**
77 | <@$authorID>
78 | ]
79 | $unbanID
80 | $color[00FFFF]
81 | $addTimestamp
82 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
83 | $suppressErrors[ **| Something went wrong! please give the correct USER ID. Usage: `>unban `**]
84 |
--------------------------------------------------------------------------------
/config_commands:
--------------------------------------------------------------------------------
1 | //Set MuteRole Command
2 | //Prefix: (your_prefix)set muterole
3 | //Variable:
4 | //Name: muterole
5 | //Value: empty literally nothing
6 | //Language: BDScript
7 | ---------------------------
8 | $nomention
9 | $onlyBotPerms[manageroles;admin;** I must have the `Manage Roles` or `Administrator` permission to do this!**]
10 | $argsCheck[>1; **| Please mention a role! Usage: `>set muterole <@&role>`**]
11 | $onlyPerms[manageroles;admin;** | You must have the `Manage Roles` or `Administrator` permission to run this command!**]
12 | $authorIcon[$authorAvatar]
13 | $author[Mute Role Changed]
14 | $thumbnail[https://discordapp.com/emojis/865527335900676096]
15 | $description[
16 | **$username#$discriminator[$authorID]** set the mute role to <@&$mentionedRoles[1]>.
17 | ]
18 | $color[00FFFF]
19 | $addTimestamp
20 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
21 | $setServerVar[muterole;$mentionedRoles[1]]
22 | $suppressErrors[ **| Couldn't find the role. Usage `>set muterole <@&role>`**]
23 |
24 | ===========================
25 |
26 | //Ping Command
27 | //Prefix: (your_prefix)ping
28 | //Language: BDScript
29 | ---------------------------
30 | $nomention
31 | $thumbnail[https://cdn.discordapp.com/emojis/864735063417946112]
32 | $authorIcon[$userAvatar[$botID]]
33 | $author[Pong]
34 | $description[:ping_pong: **Ping:**
35 | `$ping MS`
36 | ]
37 | $color[00FFFF]
38 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
39 |
40 | ===========================
41 |
42 | //Set Nickname Command
43 | //Prefix: (your_prefix)setnick
44 | //Language: BDScript
45 | ---------------------------
46 | $nomention
47 | $onlyPerms[managenicknames;admin;** | You need to have `Manage Nicknames` or `Administrator` Permission to run this command!**]
48 | $onlyIf[$mentioned[1]!=;** | Please mention a user!**]
49 | $onlyBotPerms[managenicknames;admin;** | I must have the `Manage Nicknames` or `Administrator` permission to run this command!**]
50 | $author[Nickname Changed!]
51 | $description[
52 | Successfully set the **$username[$mentioned[1]]'s** nickname as: **$noMentionMessage**
53 | **__Before:__**
54 | $nickname[$mentioned[1]]
55 | **__After:__**
56 | $noMentionMessage
57 | ]
58 | $color[00FFFF]
59 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
60 | $addTimestamp
61 | $changeUsernameWithID[$mentioned[1];$noMentionMessage]
62 | $embedSuppressErrors[**Uhhhh**; **Something Went Wrong! Couldn't find the user or there was a problem with the API or move my role to the top **; 00FFFF; ; Discord Bots Dévelopment Ⓒ︎ 2021; ]
63 |
--------------------------------------------------------------------------------
/kick.cmd:
--------------------------------------------------------------------------------
1 | //Kicks A User Command
2 | //Prefix: (your_prefix)kick
3 | //Language: BDScript
4 | ---------------------------
5 | $nomention
6 | $onlyBotPerms[kickmembers;admin;** | I must have the `Kick Members` or `Administrator` permission to do this!**]
7 | $onlyIf[$mentioned[<]!=$authorID; **| You can't kick yourself!**]
8 | $onlyIf[$mentioned[<]!=$botID; **| You can't kick me by me! bruh lol.**]
9 | $argsCheck[>1; **| Please mention someone! Usage: `>kick <@user> `**]
10 | $onlyPerms[kickmembers;admin;** | You must have the `Kick Members` or `Administrator` permission to run this command!**]
11 | $author[Kicked $username[$mentioned[1]]]
12 | $authorIcon[$userAvatar[$mentioned[1]]]
13 | $thumbnail[https://media.discordapp.net/attachments/859909155401891841/873107437371146240/1628235412202.png]
14 | $description[
15 | **$username[$mentioned[1]]** was kicked by **$username**.
16 | **__Offender:__**
17 | <@$mentioned[1]>
18 | **__Moderator:__**
19 | <@$authorID>
20 | **__Reason:__**
21 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
22 | ]
23 | $kickMention[$username#$discriminator[$authorID]: $replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1] | Kicked User ID " $mentioned[1] ".]
24 | $color[00FFFF]
25 | $addTimestamp
26 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
27 | $suppressErrors[ **| Couldn't find the user. Usage `>kick <@user> `**]
28 |
29 | ===========================
30 |
31 | //DMs Warned User Command
32 | //Prefix: (your_prefix)kick
33 | //Language: BDScript
34 | ---------------------------
35 | $nomention
36 | $onlyBotPerms[kickmembers;admin;]
37 | $onlyIf[$mentioned[<]!=$authorID;]
38 | $onlyIf[$mentioned[<]!=$botID;]
39 | $argsCheck[>1;]
40 | $onlyPerms[kickmembers;admin;]
41 | $dm[$mentioned[1]]
42 | $author[Kicked]
43 | $authorIcon[$userAvatar[$mentioned[1]]]
44 | $thumbnail[https://media.discordapp.net/attachments/859909155401891841/873107437371146240/1628235412202.png]
45 | $description[
46 | You were kicked by **$username** in **$serverName[$guildID]**.
47 | **__Moderator:__**
48 | <@$authorID>
49 | **__Reason:__**
50 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
51 | ]
52 | $color[00FFFF]
53 | $addTimestamp
54 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
55 | $suppressErrors[]
56 |
--------------------------------------------------------------------------------
/mute.cmd:
--------------------------------------------------------------------------------
1 | //Mute User Command
2 | //Prefix: (your_prefix)mute
3 | //Variable:
4 | //Name: muterole
5 | //Value: empty literally nothing
6 | //Language: BDScript
7 | ---------------------------
8 | $nomention
9 | $onlyBotPerms[manageroles;admin;** | I must have the `Manage Roles` or `Administrator` permission to do this!**]
10 | $onlyIf[$mentioned[<]!=$authorID; **| You can't mute yourself!**]
11 | $onlyIf[$mentioned[<]!=$botID; **| You can't mute me by me! bruh lol.**]
12 | $argsCheck[>1; **| Please mention someone! Usage: `>mute <@user> `**]
13 | $onlyPerms[manageroles;admin;** | You must have the `Manage Roles` or `Administrator` permission to run this command!**]
14 | $author[Muted $username[$mentioned[1]]]
15 | $authorIcon[$userAvatar[$mentioned[1]]]
16 | $thumbnail[https://media.discordapp.net/attachments/859909155401891841/865532665532383242/1626429432657.png]
17 | $description[
18 | **$username[$mentioned[1]]** was muted by **$username[$authorID]**.
19 | **__Offender:__**
20 | <@$mentioned[1]>
21 | **__Moderator:__**
22 | <@$authorID>
23 | **__Reason:__**
24 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
25 | ]
26 | $color[00FFFF]
27 | $addTimestamp
28 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
29 | $mute[$roleName[$getServerVar[muterole]]]
30 | $suppressErrors[ **| Couldn't find the user. Usage `>mute <@user> `**]
31 |
32 | ===========================
33 |
34 | //UnMutes User Command
35 | //Prefix: (your_prefix)unmute
36 | //Variable:
37 | //Name: muterole
38 | //Value: empty literally nothing
39 | //Language: BDScript
40 | ---------------------------
41 | $nomention
42 | $onlyBotPerms[manageroles;admin;** | I must have the `Manage Roles` or `Administrator` permission to do this!**]
43 | $argsCheck[>1; **| Please mention someone! Usage: `>unmute <@user>`**]
44 | $onlyIf[$mentioned[<]!=$authorID; **| You are not muted and can't unmute yourself!**]
45 | $onlyIf[$mentioned[<]!=$botID; **| You can't unmute me by me! bruh lol.**]
46 | $onlyPerms[manageroles;admin;** | You must have the `Manage Roles` or `Administrator` permission to run this command!**]
47 | $author[UnMuted $username[$mentioned[1]]]
48 | $authorIcon[$userAvatar[$mentioned[1]]]
49 | $thumbnail[https://media.discordapp.net/attachments/859909155401891841/865532665532383242/1626429432657.png]
50 | $description[
51 | **$username[$mentioned[1]]** was unmuted by **$username[$authorID]**.
52 | **__Offender:__**
53 | <@$mentioned[1]>
54 | **__Moderator:__**
55 | <@$authorID>
56 | ]
57 | $color[00FFFF]
58 | $addTimestamp
59 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
60 | $unmute[$roleName[$getServerVar[muterole]]]
61 | $suppressErrors[ **| Couldn't find the user. Usage `>unmute <@user>`**]
62 |
63 | ===========================
64 |
65 | //DMs Muted User Command
66 | //Prefix: (your_prefix)mute
67 | //Variable:
68 | //Name: muterole
69 | //Value: empty literally nothing
70 | //Language: BDScript
71 | ---------------------------
72 | $nomention
73 | $onlyBotPerms[manageroles;admin;** | I must have the `Manage Roles` or `Administrator` permission to do this!**]
74 | $onlyIf[$mentioned[<]!=$authorID;]
75 | $onlyIf[$mentioned[<]!=$botID;]
76 | $argsCheck[>1;]
77 | $onlyPerms[manageroles;admin;]
78 | $dm[$mentioned[1]]
79 | $author[Muted]
80 | $authorIcon[https://media.discordapp.net/attachments/859909155401891841/865532665532383242/1626429432657.png]
81 | $thumbnail[$serverIcon]
82 | $description[
83 | You were muted by **$username[$authorID]** in **$serverName[$guildID]**.
84 | **__Moderator:__**
85 | <@$authorID>
86 | **__Reason:__**
87 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
88 | ]
89 | $color[00FFFF]
90 | $addTimestamp
91 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
92 | $suppressErrors[]
93 |
--------------------------------------------------------------------------------
/purge.cmd:
--------------------------------------------------------------------------------
1 | //Purge Messages Command
2 | //Prefix: (your_prefix)purge
3 | //Language: BDScript
4 | ---------------------------
5 | $nomention
6 | $onlyPerms[managemessages;admin;** | You must have the `Manage Messages` or `Administrator` permission to run this command!**]
7 | $onlyBotPerms[managemessages;admin;** I must have the `Manage Messages` or `Administrator` permission to do this!**]
8 | $onlyIf[$message[1]!=;** | Please specify a number!**]
9 | $onlyIf[$isNumber[$message[1]]==true;** | Given Amount is not a valid number!**]
10 | $deletecommand
11 | $author[Purging...]
12 | $authorIcon[$authorAvatar]
13 | $description[
14 | **$username#$discriminator[$authorID]** purged **$message[1]** messages.
15 | ]
16 | $clear[$message[1]]
17 | $color[00FFFF]
18 | $addTimestamp
19 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
20 |
--------------------------------------------------------------------------------
/warn.cmd:
--------------------------------------------------------------------------------
1 | //Warn User Command
2 | //Prefix: (your_prefix)warn
3 | //Language: BDScript
4 | ---------------------------
5 | $nomention
6 | $onlyIf[$isBot[$mentioned[1]]==false; **| You can't warn bots**]
7 | $onlyIf[$mentioned[<]!=$authorID; **| You can't warn yourself!**]
8 | $argsCheck[>1; **| Please mention someone! Usage: `>warn <@user> `**]
9 | $onlyAdmin[** | You must have the `Administrator` permission to run this command!**]
10 | $author[Warned]
11 | $authorIcon[https://media.discordapp.net/attachments/828263511678255168/864752160452247552/856885166348959754.png]
12 | $thumbnail[$serverIcon]
13 | $description[**$username[$mentioned[1]]** has been warned by **$username**.
14 | **__Offender:__**
15 | <@$mentioned[1]>
16 | **__Moderator:__**
17 | <@$authorID>
18 | **__Reason:__**
19 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
20 | ]
21 | $color[00FFFF]
22 | $addTimestamp
23 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
24 | $suppressErrors[ **| Couldn't find the user. Usage `>warn <@user> `**]
25 | $setUserVar[warn;$sum[$getUserVar[warn;$mentioned[<]];1];$mentioned[<]]
26 |
27 | ====================
28 |
29 | //DMs Warned User Command
30 | //Prefix: (your_prefix)warn
31 | //Language: BDScript
32 | ---------------------------
33 | $nomention
34 | $onlyIf[$isBot[$mentioned[1]]==false;]
35 | $onlyIf[$mentioned[<]!=$authorID;]
36 | $onlyAdmin[]
37 | $argsCheck[>1;]
38 | $dm[$mentioned[1]]
39 | $author[Warned]
40 | $authorIcon[https://media.discordapp.net/attachments/828263511678255168/864752160452247552/856885166348959754.png]
41 | $thumbnail[$serverIcon]
42 | $description[You were warned by **$username** in **$serverName[$guildID]**.
43 | **__Moderator:__**
44 | <@$authorID>
45 | **__Reason:__**
46 | `$replaceText[$replaceText[$checkCondition[$noMentionMessage==];true;Unspecified;-1];false;$noMentionMessage;-1]`
47 | ]
48 | $color[00FFFF]
49 | $addTimestamp
50 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
51 | $suppressErrors[]
52 |
53 | ====================
54 |
55 | //Check Warns Command
56 | //Prefix: (your_prefix)checkwarns
57 | //Language: BDScript
58 | ---------------------------
59 | $nomention
60 | $onlyIf[$isBot[$mentioned[1]]==false; **| You can't check a bot's warns!**]
61 | $onlyIf[$mentioned[<]!=$authorID; **| You can't check your own warns!**]$argsCheck[>1; **| Please mention someone! Usage: `>checkwarns <@user>`]
62 | $onlyAdmin[** | You must have the `Administrator` permission to run this command!**]
63 | $thumbnail[https://media.discordapp.net/attachments/828263511678255168/864752160452247552/856885166348959754.png]
64 | $author[$username[$mentioned[1]]'s warns]
65 | $authorIcon[$userAvatar[$mentioned[1]]]
66 | $description[
67 | **$username[$mentioned[1]]** has `$getUserVar[warn;$mentioned[<]]` warn(s)
68 | ]
69 | $color[00FFFF]
70 | $addTimestamp
71 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
72 | $suppressErrors[ **| Couldn't find the user. Usage `>checkwarns <@user>`**]
73 |
74 | ===========================
75 |
76 | //Clear Warns User Command
77 | //Prefix: (your_prefix)clearwarns
78 | //Language: BDScript
79 | ---------------------------
80 | $nomention
81 | $onlyIf[$isBot[$mentioned[1]]==false; **| You can't clear a bot's warns!**]
82 | $onlyIf[$mentioned[<]!=$authorID; **| You can't clear your own warns!**]
83 | $argsCheck[>1; **| Please mention someone! Usage: `>clearwarns <@user>`**]
84 | $onlyAdmin[** | You must have the `Administrator` permission to run this command!**]
85 | $thumbnail[https://media.discordapp.net/attachments/828263511678255168/864752160452247552/856885166348959754.png]
86 | $author[Cleared $username[$mentioned[1]]'s warns]
87 | $authorIcon[$userAvatar[$mentioned[1]]]
88 | $description[
89 | Cleared `$getUserVar[warn;$mentioned[1]]` warn(s) from **$username[$mentioned[1]]**.
90 | ]
91 | $color[00FFFF]
92 | $addTimestamp
93 | $footer[Discord Bots Dévelopment Ⓒ︎ 2021]
94 | $suppressErrors[ **| Couldn't find the user. Usage `>clearwarns <@user>`**]
95 | $setUserVar[warn;;$mentioned[1]]
96 |
--------------------------------------------------------------------------------