Skip to content

Commit

Permalink
pt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
oyisre committed Jul 12, 2018
1 parent 5201b18 commit 323aa48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import random
import psycopg2
import urllib.parse
import asyncio


# TODO: gambling & games
Expand Down Expand Up @@ -40,7 +41,8 @@ async def roll(self, ctx):
roll_msg_content = 'Rolling'
roll_msg = await self.bot.send_message(ctx.message.channel,
roll_msg_content)
for i in range(random.randint(2, 6)):
for i in range(random.randint(2, 5)):
await asyncio.sleep(0.25)
roll_msg_content += '.'
await self.bot.edit_message(roll_msg, roll_msg_content)

Expand Down

0 comments on commit 323aa48

Please sign in to comment.