$blackList
add/remove any server/user to/from the bots blacklist.

FUNCTION USAGE

  • $blackList[add;userID;user]
  • $blackList[remove;userID;user]
  • $blackList[add;serverID;server]
  • $blackList[remove;serverID;server]
Field1
Field2
Field3
add
userID/serverID
user/server
remove
userID/serverID
user/server
  • Field1 add = Adds the server/user to the bots blacklist remove = Removes the server/user from the bots blacklist
  • Field2 userID = Supply one serverID = Supply one
  • Field3 user = Specify if you're supplying a userID server = Specify if you're supplying a serverID
You'll find incorrect results if you dont specify field 3 to the correct ID AND careful blacklisting your own server XD
Example 1:
1
bot.Command({
2
name: "blacklist",
3
code: `
4
$blackList[add;630438202671018747;server]
5
Done, I blacklisted a server
6
`
7
})
Copied!
Example 2:
1
bot.Command({
2
name: "blacklist",
3
code: `
4
$blackList[$message[1];$message[2];$message[3]]
5
I $message[1]ed a $message[3] to the blacklist
6
7
$onlyIfMessageContains[$message[3];server;user;Please specify if this is a serverID or userID]
8
$onlyIfMessageContains[$message[1];add;remove;Use add or remove for the first word]
9
`
10
})
Copied!
Example
Usages
Responses
1
?blacklist
Done, I blacklisted a server
2
?blacklist add 3456920448591956 server
I added a server to the blacklist
Last modified 10mo ago
Copy link