Basic Admin Essentials Trello Help

Tell me if this is in the wrong category.


Basic Admin Essentials 2.0 has this feature where you can connect a trello board and you can ban people from that trello board.

I need help with…
-Connecting the trello board.
-How to manage the board.

Can someone help me with this?

I didn’t utilise BAE 2.0 for Trello - instead, I learnt it myself. Since you’re wanting to ban people from that board, do you mean you want it to ban anyone from the card’s title in the list?

--[ Variables
local http = game:GetService("HttpService") --obtaining service for GETting
local banList = {} --the bad people list. It'll be sorted as: [userId] = "reason"
local info = { --I recommend to use an alternative account (unused) for achieving this
	key = "", --https://trello.com/app-key
	token = "" --generate token from the link above
}
local url = "https://api.trello.com" --trello's api
local idList = "" --insert your idList here, if you don't know how to, read instructions:
--[[
	idList instructions:
	1 - create a card
	2 - click on that card
	3 - on the link address ("https://trello.com/c/cardID/cardDetails"), add ".json" at the end ("cardDetails.json")
	4 - CTRL + F to enable Find - type in "idList"
	5 - get idList ("idList":"idListIsInHere")
]]
--[ Setup
local get = http:GetAsync(url.."/1/lists/"..idList.."/cards?key="..info.key.."&token="..info.token) --params for GETting
local data = http:JSONDecode(get) --transform into a LUA table
for _, i in pairs(data) do --for each card,
	banList[i.name] = i.desc --creates [userId] = "reason"
	--PLEASE ENSURE THAT THE NAME OF THE CARD IS THE ID OF THE PLAYER, AND THE DESCRIPTION OF THE CARD IS THE REASON FOR BAN.
end

game.Players.PlayerAdded:Connect(function(plr) --once player connected
	for id, reason in pairs(banList) do --for every id in the ban list
		if plr.UserId == id then --if the id matches the player's id then
			plr:Kick(reason) --kick the person (technically ban)
		end
	end
end)