Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
v1.5.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMoksej committed Oct 5, 2020
1 parent 9abdf8a commit dc93859
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion cogs/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
'V1.5.0': '1. Fixed where bot wouldn\'t react with ⏹️ when paginating 1 page only\n2. Added more roasts.\n3. Added competing activity status to `userinfo` command\n4. Fixed fun commands opening a new session each time.\n5. You can now use roast outside NSFW channels',
'V1.5.1': '1. Imported aiohttp module where I should\'ve had it',
'V1.5.2': '1. Fixed `userinfo` command throwing an error when fetched user is unknown',
'V1.5.3': '1. Fixed `snipe` showing content sniped from NSFW channels in SFW channels.'
'V1.5.3': '1. Fixed `snipe` showing content sniped from NSFW channels in SFW channels.',
'V1.5.4': '1. Added intents\n2. Fixed `togglemsg joinembed` not enabling embeds when joinlogs are on.'
}

version = '1.5.3'
Expand Down
4 changes: 2 additions & 2 deletions cogs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ async def invite(self, ctx):
async def vote(self, ctx):
""" Give me a vote, please. Thanks... """

if len(self.bot.guilds) >= 100 <= 110:
return await ctx.send(f"{emotes.bot_vip} We reached 100 servers! The voting will be disabled until we get 110 servers!")
# if len(self.bot.guilds) >= 100 <= 110:
# return await ctx.send(f"{emotes.bot_vip} We reached 100 servers! The voting will be disabled until we get 110 servers!")

e = discord.Embed(color=self.color['embed_color'], description=f"{emotes.pfp_normal} You can vote for me [here](https://discord.boats/bot/667117267405766696/vote)")
await ctx.send(embed=e)
Expand Down
4 changes: 2 additions & 2 deletions cogs/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async def togglemsg_leavebots(self, ctx):
async def togglemsg_joinembed(self, ctx):
""" Enable or disable embedded welcoming messages """
check = await self.bot.db.fetchval("SELECT embed FROM joinmsg WHERE guild_id = $1", ctx.guild.id)
checks = await self.bot.db.fetchval('SELECT * FROM leavemsg WHERE guild_id = $1', ctx.guild.id)
checks = await self.bot.db.fetchval('SELECT * FROM joinmsg WHERE guild_id = $1', ctx.guild.id)
if not checks:
return await ctx.send(f"{emotes.warning} Please enable welcoming messages first!")
if not check:
Expand Down Expand Up @@ -686,4 +686,4 @@ async def antidehoistnick(self, ctx, new_nick: str):
def setup(bot):
bot.add_cog(Managment(bot))



2 changes: 1 addition & 1 deletion cogs/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ async def snipe(self, ctx, channel: discord.TextChannel = None):
check = cm.get_cache(self.bot, channel.id, 'snipes')
if check is None:
return await ctx.send(f"{emotes.red_mark} Haven't logged anything yet")
if check['nsfw']:
if check['nsfw'] and not channel.is_nsfw():
return await ctx.send(f"{emotes.other_nsfw} This channel needs to be NSFW in order for you to see the sniped content")
content = check['message']
if len(content) > 2000:
Expand Down
2 changes: 1 addition & 1 deletion utils/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def has_voted():
async def predicate(ctx):
if await ctx.bot.is_booster(ctx.author):
return True
if len(ctx.bot.guilds) >= 100 <= 110:
if 100 <= len(ctx.bot.guilds) <= 110:
return True
async with aiohttp.ClientSession() as session:
async with session.get(f'https://discord.boats/api/bot/667117267405766696/voted?id={ctx.author.id}') as r:
Expand Down

0 comments on commit dc93859

Please sign in to comment.