Level System BDFD Public

BDScript Actualizado Sep 19, 2025

Archivos de Código

$alwaysReply (A - Z sin premium)

Duplica este comando con todas las letras que quieras que se active la subida de XP. Pero si tienes BDFD premium solo usa un comando con prefix $alwaysReply 105 líneas
$nomention
$suppressErrors[]
$jsonParse[$getServerVar[ajustes;$guildID]]
$ignoreLinks
$var[premium;10]
$var[boost;$findRole[Server Booster]]
$if[$and[$roleExists[$getServerVar[role-pre]]==true;$hasRole[$authorID;$getServerVar[role-pre]]==true]==true]
$var[premium;40]
$endif
$if[$and[$hasRole[$authorID;$var[boost]]==true;$hasRole[$authorID;$getServerVar[role-pre]]==true;$roleExists[$getServerVar[role-pre]]==true]==true]
$var[boost;50]
$var[premium;$sum[$var[boost];$var[premium]]]
$endif



$var[imagen;https://edgabot.lucnodes.es/api/image/?avatar=$authorAvatar&username=$url[encode;$toTitleCase[$username[$authorID]]]&levelAnte=$url[encode;$getUserVar[level]]&levelUp=$url[encode;$sum[1;$getUserVar[level]]]]
$var[canal;$replaceText[$replaceText[$checkCondition[$json[canal-message]!=];true;$json[canal-message];1];false;$channelID;1]]

$var[text;$replaceText[$replaceText[$checkCondition[$json[mensaje]==];true;<@$authorID> has subido al nivel **$sum[$getUserVar[level];1]**;1];false;$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$json[mensaje];{level};$sum[$getUserVar[level;$authorID];1];-1];{authorID};$authorID;-1];{mention};<@$authorID>;-1];{username};$username;-1];{discriminator};$discriminator[$authorID];-1];1]]

$if[$getUserVar[xp;$authorID]>=$getUserVar[req;$authorID]]
$useChannel[$var[canal]]
$title[Level Up]
$thumbnail[$authorAvatar]
$description[$var[text]]
$image[$var[imagen]]

$setUserVar[level;$sum[1;$getUserVar[level]];$authorID]
$setUserVar[req;$sum[50;$getUserVar[req]];$authorID]
$setUserVar[xp;0;$authorID]
$else
$if[$getUserVar[xp]<=$getUserVar[req]]
$setUserVar[xp;$sum[$var[premium];$getUserVar[xp;$authorID]];$authorID]
$endif
$endif

$jsonParse[$getServerVar[rewards;$guildID]]
$if[$roleExists[$json[level1]]==true]
$if[$getUserVar[level;$authorID]==1]
$roleGrant[$authorID;+$json[level1]]
$endif
$endif


$if[$roleExists[$json[level2]]==true]
$if[$getUserVar[level;$authorID]==2]
$roleGrant[$authorID;+$json[level2]]
$endif
$endif


$if[$roleExists[$json[level3]]==true]
$if[$getUserVar[level;$authorID]==3]
$roleGrant[$authorID;+$json[level3]]
$endif
$endif


$if[$roleExists[$json[level4]]==true]
$if[$getUserVar[level;$authorID]==4]
$roleGrant[$authorID;+$json[level4]]
$endif
$endif


$if[$roleExists[$json[level5]]==true]
$if[$getUserVar[level;$authorID]==5]
$roleGrant[$authorID;+$json[level5]]
$endif
$endif


$if[$roleExists[$json[level6]]==true]
$if[$getUserVar[level;$authorID]==6]
$roleGrant[$authorID;+$json[level6]]
$endif
$endif


$if[$roleExists[$json[level7]]==true]
$if[$getUserVar[level;$authorID]==7]
$roleGrant[$authorID;+$json[level7]]
$endif
$endif


$if[$roleExists[$json[level8]]==true]
$if[$getUserVar[level;$authorID]==8]
$roleGrant[$authorID;+$json[level8]]
$endif
$endif

$if[$roleExists[$json[level9]]==true]
$if[$getUserVar[level;$authorID]==9]
$roleGrant[$authorID;+$json[level9]]
$endif
$endif


$if[$roleExists[$json[level10]]==true]
$if[$getUserVar[level;$authorID]==10]
$roleGrant[$authorID;+$json[level10]]
$endif
$endif

!rank

Comando para obtener el Nivel/XP/Rango de cualquier usuario. 15 líneas

!top

Comando para obtener la lista de los 5 usuarios con mayor nivel del servidor. 49 líneas

!level-message

Comando para configurar el mensaje que se enviara cuando un usuario suba de nivel. 30 líneas

!level-channel

Comando para establecer un canal fijo donde se enviaran los mensajes de subida de nivel (Si no se establece uno se enviara en el mismo canal donde el usuario subio de nivel) 18 líneas

!add-rewards

Comando para añadir roles de recompensas a cada nivel (Maximo 10) 70 líneas

!add-vip

Comando para añadir un rol VIP (Los usuarios con este rol obtendran mas XP con cada subida). 21 líneas

!view-rewards

Comando para ver todos los roles asignados a cada nivel. 54 líneas

!level-reset

Comando para resetear las configuraciones del sistema, tanto mensaje, canal, roles, etc. 30 líneas

Comentarios (2)

Leonardo

Bodrio como siempre (okno)