How to Add Trello Bans to basic admin

Instead of Manually Trello banning someone why not do it automatically?

Resources

First, you need the Trello Plugin: https://www.roblox.com/library/5399617682/Basic-Admin-Trello-Bans-Plugin
Second, you need Basic admin: https://www.roblox.com/library/564796604/Basic-Admin-Essentials-2-0
Third, you need a Trello Account: https://trello.com

How does it work?

If a Player Says this command :tban [User] it Trello bans a player.

Parts

  • Setting up your Trello
  • Getting your Trello Information
  • Adding the Trello Plugin

Part 1

Setting up your Trello.
First, you need to enable HttpService, for it to work.
Step 1:
Opening your game settings


Then Go to the Tab where it says "Security"

And you will see the following options:

Click on “Allow HTTP Requests” and click save.
Now you have HttpService Enabled!

Part 2

Getting your Trello Information.
You will need the following:

  • Token
  • Application Key
  • Board Id

To Get your Trello Board Id it’s simple.
You will need to copy the Board Id:
image
Now you have your Board Id.

Now you need your Application Key:
https://trello.com/app-key
And you will see a box that has your “API Key”


Now you have your Application Key!

Now you need your token:


Click on “Token” that blue link button
When you click on that blue link button you will see this page

Scroll down until you see the allow button
image
Click on that aloud button, and you will get your token.

You’re done with Part 1 And 2

Part 3

Adding the Trello Plugin/Connecting it to Basic Admin
First, HTTP Service MUST be Enabled.

When you enter your Basic Admin Script, you will find this:

['Trello'] = true, -- Must Be Enabled for it to work, don't forget to have HTTP Service On
['Trello Board'] = (''), -- Trello board ID.
['Trello App Key'] = (''), -- Private trello application key.
['Trello Token'] = (''), -- Private trello token.

Don’t forget to fill it out if you have not already
After you filled out that Trello Configuration you need to fill out another one:
You will find a Module Script Named: TrelloConfiguration

return {
	['Trello_Bans_List_Name'] = 'Trello Bans', --Trello Bans List Name
	['Trello_Token'] = '', --Trello Token
	['Trello_App_Key'] = '', --Trello App Key
	['Trello_Board_Id'] = '', --Trello Board Id
}

When you filled that out, it’s time for the full code.
Before you fill out the full code listen to this part
You can Modify the CommandName, CommandPrefix,CommandPermission, and CommandDescription.

local pluginName = 'tban' --Command Name
local pluginPrefix = Prefix --Command Prefix ":"
local pluginLevel = 3 --Command Permission to use it, either 1,2,3,4 I recommend it to be 3
local pluginUsage = "<User(s)>"
local pluginDescription = "Trello Bans a player." --Command Description

Full Code:

local Plugin = function(...)
	local Data = {...}
	
	local Trello_Module = require(script.TrelloModule)
	local remoteEvent = Data[1][1]
	local remoteFunction = Data[1][2]
	local returnPermissions = Data[1][3]
	local Commands = Data[1][4]
	local Prefix = Data[1][5]
	local actionPrefix = Data[1][6]
	local returnPlayers = Data[1][7]
	local cleanData = Data[1][8]
	
	local pluginName = 'tban'
	local pluginPrefix = Prefix
	local pluginLevel = 0
	local pluginUsage = "<User(s)>"
	local pluginDescription = "Trello Bans a player."
	
	
	local function pluginFunction(Args)
		local Player = Args[1]
		local Player_Permisson = returnPermissions(Player)
		local Targets = returnPlayers(Player,Args[3],Args[1])
		for a,b in next,Targets do
			local Target_Permisson = returnPermissions(b)
			if Player_Permisson > Target_Permisson then
				local IsTrelloBanned,HttpError = pcall(function()
					Trello_Module:CreateCard(b.Name..':'..b.UserId)
				end)
				if IsTrelloBanned then
					remoteEvent:FireClient(Player,'Hint','Success','Successfully Trello Banned: '..tostring(b.Name)..' with the UserId of '..tonumber(b.UserId))
					b:Kick('\nYou where Trello Banned From: '..game.Name)
				elseif HttpError then
					remoteEvent:FireClient(Player,'Message','Trello Error',HttpError)
				end	
			end
		end
	end
	
	-- Return Everything to the MainModule --
	local descToReturn
	if pluginUsage ~= "" then
		descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
	else
		descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription
	end
	
	return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}
end

return Plugin

It won’t kick me because I made it so it won’t kick me, it’s for an example!
If there is any problems DM Me on Roblox or the devfourm.
image
And there, Trello banned me.

Credits

@Aiden_12114 - Trello Module
@TheFurryFish - Basic Admin
@bacionhairmanfur2 - Trello Plugin/Modified Trello Module
Is this useful?

  • Useful
  • Not Useful

0 voters

19 Likes

if your making a tutorial you should explain that full code, instead of just telling people to copy and paste it tell them what the functions are doing. you should also make everything in a tutorial be by you instead of using someone elses work.

3 Likes

9 posts were split to a new topic: Feedback - DM Instead of Reply

I have to agree in that this is more of a #resources:community-resources than a tutorial. Maybe you should move it there instead. Pre-made code belongs in #resources:community-resources while code where you guide them through the scripting belongs in #resources:community-tutorials

1 Like

Trello is NOT a database and not meant to be used as one. Its purpose is to keep track of things like a to-do list. I don’t understand why people keep recommending this… The same thing goes for Google Sheets, it’s NOT meant to be used as a database. Please use an actual database such as Firebase. Firebase has a free plan, Please be sure to select the free plan because you can rack up a bill.

Firebase Link

2 Likes

@ona2000,

It is not meant to be used as a database but people can still use it as one. What is so bad about using it improperly? It’s not like we’re going to die or something because of it.

2 Likes

As aiden said: It’s not like we’re are going to die or something because of it.
Plus trello bans are a great thing, because you can have your Staff/HR Team in it.

And, should I do a tutorial on how to make FireBase bans with Basic Admin?

2 Likes

Yes, you should! That would be very helpful for the community.

Just because Trello “can” be used as a database doesn’t justify actually using it as one. Tutorials should teach the best practices—this tutorial teaches people to misuse things which is not good.

cc @bacionhairmanfur2

1 Like

You won’t die from it, its just not good to use something its not meant for. Although it works it doesn’t mean its good to use. Also, you can set permissions with Firebase and choose who is able to do what. So there is no issue with adding Staff/HR Team to it.

I agree that you won’t die for using it improperly, but you should really use an actual database because it can cause issues in the future. The more people you ban the bigger the requests pull in. Trello doesn’t support a REST API so you cant just request certain data. On top of that, they also limit their API usage much more. Either way, it’s up to you what you want to use I’m just heavily recommending you use an actual database from my experience with using Trello as a ban list.

1 Like

Exaplain More.
With this “Database”

Yes, please do. I believe a lot of people could benefit from that, including me.

“Misuse” it’s an easy way, especially with a cafe game, to pban exploiters who have been reported without joining the game. I think it’s great

Hey! So, I just checked the contents of the Config File right now and, people could gain access to someone else’s Trello. This is because, people who use exploits such as Synapse can DOWNLOAD Module & Local Scripts. In my module, I made it so it will store the values in a variable and then delete the Value Objects so no one can get the keys. (Not Even By Printing The Value).

I recommend you go by this approach as it will save someone’s Trello account. Thank you!

Show me how you can fix it, and I’ll update it.

That only happens if you leave the scripts inside Workspace or client replicated services.

1 Like

True but some people tend to leave BAE in Workspace.

It is automatically moved to ServerScriptService.

Should note that trello is not made for this job and can easily start to ratelimit requests.

2 Likes