From efa99965c4390bca433999c6ff5c188a84b2dbe5 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sun, 10 May 2020 21:48:08 +0100 Subject: Added findseed command and the ! prefix --- cogs/utils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cogs') diff --git a/cogs/utils.py b/cogs/utils.py index 9959fdb..cd883f8 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -8,6 +8,7 @@ import asyncio from datetime import timedelta from google.cloud import translate_v2 as translate translate_client = translate.Client() +import random async def translateMsg(text, target="en"): # Text can also be a sequence of strings, in which case this method @@ -143,5 +144,16 @@ class Utils(commands.Cog): await ctx.message.delete() await verifyRole(self, ctx, apiKey) + @commands.command() + async def findseed(self, ctx): + totalEyes = 0 + for i in range(12): + randomness = random.randint(1,10) + if randomness == 1: + totalEyes += randomness + else: + continue + await ctx.send(f"{ctx.message.author.name} -> your seed is a {totalEyes} eye") + def setup(bot): bot.add_cog(Utils(bot)) -- cgit v1.2.3