Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
add: ffa to description
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtakagi committed Jul 13, 2020
1 parent 146f62c commit 499ec0f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/kotlin/me/notsmatch/teambot/command/TeamCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ package me.notsmatch.teambot.command

import com.jagrosh.jdautilities.command.Command
import com.jagrosh.jdautilities.command.CommandEvent
import me.notsmatch.teambot.util.AlphabetUtils
import me.notsmatch.teambot.util.TagUtils
import me.notsmatch.teambot.util.NumberUtils
import me.notsmatch.teambot.util.TeamUtils
import net.dv8tion.jda.api.EmbedBuilder
import org.apache.commons.lang3.StringUtils
import java.awt.Color
import kotlin.math.ceil
import kotlin.math.round

class TeamCommand : Command() {

init {
this.name = "t"
this.help = "チーム分けをします\nチーム形式\n2: 2v2\n3: 3v3\n4: 4v4\n5: 5v5\n6: 6v6"
this.help = "チーム分けをします\nチーム形式\n1: FFA\n2: 2v2\n3: 3v3\n4: 4v4\n5: 5v5\n6: 6v6"
this.arguments = "<チーム形式> <name1> <name2> <name3>..."
}

Expand Down Expand Up @@ -111,7 +109,7 @@ class TeamCommand : Command() {
)
var i = 0
teams.filter { team -> team.isNotEmpty() }.forEach{ team ->
addField(AlphabetUtils.getAlphabet(i).toUpperCase() + " (" + team.size + ")", team.toString().replace("[", "").replace("]", ""), true)
addField(TagUtils.getAlphabet(i).toUpperCase() + " (" + team.size + ")", team.toString().replace("[", "").replace("]", ""), true)
i++
}
}.build())
Expand Down

0 comments on commit 499ec0f

Please sign in to comment.