aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-05-10 20:48:08 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-05-10 20:48:08 +0000
commitefa99965c4390bca433999c6ff5c188a84b2dbe5 (patch)
tree8dfe219692ab161ba7bde9770e6932cd466cc9c0 /cogs/utils.py
parente56aee64210ebcb2603d1497bdc577670b7e0ed7 (diff)
downloadsteve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar.gz
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar.bz2
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar.lz
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar.xz
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.tar.zst
steve-bot-efa99965c4390bca433999c6ff5c188a84b2dbe5.zip
Added findseed command and the ! prefix
Diffstat (limited to '')
-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))