viewing paste Unknown #45587 | Python

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#Command: Overwatch Team Comp
@my_bot.command
async def comp():
    await my_bot.say("How many offense heroes do you want?")
    of = await client.wait_for_message(timeout=10.0, author=message.author)
    off = int(of.content)
    await my_bot.say("How many defense heroes do you want?")
    de = await client.wait_for_message(timeout=10.0, author=message.author)
    defn = int(de.content)
    await my_bot.say("How many tanks do you want?")
    ta = await client.wait_for_message(timeout=10.0, author=message.author)
    tan = int(tan.content)
    su = await my_bot.say("How many supports do you want?")
    sup = int(su.content)
    offense = ["Genji", "McCree", "Pharah", "Soldier: 76", "Sombra", "Reaper", "Tracer"]
    defense = ["Bastion", "Hanzo", "Junkrat", "Torbjorn", "Mei", "Widowmaker"]
    tank = ["D.Va", "Orisa", "Reinhardt", "Winston", "Roadhog", "Zarya"]
    support = ["Ana", "Lucio", "Mercy", "Symmetra", "Zenyatta"]
    random.shuffle(offense)
    random.shuffle(defense)
    random.shuffle(tank)
    random.shuffle(support)
    await my_bot.say("Your team comp is as follows.\n" + (offense[0:off]) + " " + (defense[0:defn]) + " " + (tank[0:tan]) + " " + (support[0:sup])
 
Viewed 930 times, submitted by Guest.