aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/utils.py')
-rwxr-xr-xcogs/utils.py12
1 files changed, 12 insertions, 0 deletions
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))