diff options
author | lexicade <jasonnlelong@gmail.com> | 2023-01-27 21:06:30 +0000 |
---|---|---|
committer | lexicade <jasonnlelong@gmail.com> | 2023-01-27 21:06:30 +0000 |
commit | 52801b4de1d63cd01191acf7fcee137977140ec0 (patch) | |
tree | 08271a1f1e3e8060486b6651c67c9934867c648e /cogs/Train.py | |
parent | 8df873808c86805624851356f5dea76ec621de23 (diff) |
Diffstat (limited to 'cogs/Train.py')
-rw-r--r-- | cogs/Train.py | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/cogs/Train.py b/cogs/Train.py new file mode 100644 index 0000000..cca677f --- /dev/null +++ b/cogs/Train.py @@ -0,0 +1,68 @@ +from discord.ext import commands +import discord +import random +colours = {"default": 0, + "teal": 0x1abc9c, + "dark teal": 0x11806a, + "green": 0x2ecc71, + "dark green": 0x1f8b4c, + "blue": 0x3498db, + "dark blue": 0x206694, + "purple": 0x9b59b6, + "dark purple": 0x71368a, + "magenta": 0xe91e63, + "dark magenta": 0xad1457, + "gold": 0xf1c40f, + "dark gold": 0xc27c0e, + "orange": 0xe67e22, + "dark orange": 0xa84300, + "red": 0xe74c3c, + "dark red": 0x992d22, + "lighter grey": 0x95a5a6, + "dark grey": 0x607d8b, + "light grey": 0x979c9f, + "darker grey": 0x546e7a, + "blurple": 0x7289da, + "greyple": 0x99aab5} + + +class Train(commands.Cog): + def __init__(self, bot): + self.bot = bot + global extension_name + extension_name = "[Train] " + + @commands.command(aliases=[], application_command_meta=commands.ApplicationCommandMeta(options=[])) + async def train(self, ctx): + """Release your anger and flip everything.""" + t1 = random.randint(6, 16) + t2 = random.randint(5, 8) + t3 = random.randint(6, 16) + train = "W" + + i=0 + while i < t1: + train = train + "O" + i = i + 1 + + i=0 + while i < t2: + train = train + "o" + i = i + 1 + + i=0 + while i < t3: + train = train + "O" + i = i + 1 + + await ctx.send(train) + + +def setup(bot): + print("INFO: Loading [Train]... ", end="") + bot.add_cog(Train(bot)) + print("Done!") + + +def teardown(bot): + print("INFO: Unloading [Train]") |