Create Battle Command for Discord Bot in Android by DBD 1

Create Battle Command for Discord Bot in Android by DBD

First create two variable with name check and win

Let the value of check variable 0

Dont add any value in win variable.

Make every command with same name.

COMMAND 1

$nomention
$argsCheck[>1;You have to mention someone]
$title[BATTLE IS STARTED]
$color[#0000ff]
$description[Battle is started between **$username** and **$username[$mentioned[1]]**]
$footer[Battle started ⚔]
$setUserVar[check;1]
$setUserVar[win;$randomText[Win;Loose]]

COMMAND 2

$nomention
$argsCheck[>1;]
$onlyIf[$getUserVar[win]==Win;]
$title[WINNER]
$color[#0000ff]
$description[**$username** is the winner]
$footer[Battle over ⚔]
$setUserVar[check;0]
$replyIn[3s]

COMMAND 3

$nomention
$argsCheck[>1;]
$onlyIf[$getUserVar[win]!=Win;]
$title[WINNER]
$color[#0000ff]
$description[**$username[$mentioned[1]]** is the winner]
$footer[Battle over ⚔]
$setUserVar[check;0]
$replyIn[3s]

CONCLUSION

If you had any problem with command, contact me in my server –CTK SUPPORT

Leave a Reply

Your email address will not be published. Required fields are marked *