Skip to content

Commit

Permalink
Merge pull request #85 from riazufila/release-v1.3.4
Browse files Browse the repository at this point in the history
Release v1.3.4
  • Loading branch information
riazufila authored Apr 6, 2021
2 parents d0102bc + a3125ae commit bafd5ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cogs/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def version(self, ctx):
db_ailie.disconnect()

# Change upon version update
version = "1.3.3"
version = "1.3.4"

# Mimic loading animation
msg = await ctx.send(
Expand Down
10 changes: 7 additions & 3 deletions cogs/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def race(self, ctx):

# Fill gems to obtain list with many random increasing numbers
while counter < 500:
gems_to_obtain.append(random.randint(counter, counter + 100))
gems_to_obtain.append(random.randint(counter + 10, counter + 100))
counter += 100

# Choose gems from list with weights
Expand Down Expand Up @@ -79,7 +79,7 @@ async def pat(self, ctx):

# Fill gems to obtain list with many random increasing numbers
while counter < 1500:
gems_to_obtain.append(random.randint(counter, counter + 500))
gems_to_obtain.append(random.randint(counter + 10, counter + 500))
counter += 500

# Choose gems from list with weights
Expand Down Expand Up @@ -195,7 +195,7 @@ async def share(self, ctx, gems: int, mention: discord.Member):
return

# Disallow negative numbers as input
if gems <= 0:
if gems < 0:
await ctx.send(f"Are you high, <@{ctx.author.id}>?")
db_ailie.disconnect()
return
Expand Down Expand Up @@ -246,6 +246,10 @@ async def rich(self, ctx, scope="server"):
buffer = [gems, member, member.id]
guardian_with_gems.append(buffer)
elif scope.lower() in ["global", "glob", "g"]:
await ctx.send(
"Global rank will take a while to produce.. "
+ f"Please wait, <@{ctx.author.id}>."
)
logical_whereabouts = "Global"
for guild in self.bot.guilds:
async for member in guild.fetch_members(limit=None):
Expand Down
4 changes: 2 additions & 2 deletions cogs/summon.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def checkPickUpAvailability(self, target, w):
target_banner = ""
heroes_check = False

# Check if the parameter send is lesser than 5 characters
# Check if the parameter send is lesser than 4 characters
# If its lesser, then return error message
if len(target) < 5:
if len(target) < 4:
invalid = True

# Check if the summon is for heroes or equipments
Expand Down

0 comments on commit bafd5ab

Please sign in to comment.