Fix changes in fork

pull/107/head
Stijn De Clercq 2022-02-14 16:40:42 +01:00
parent 585134a3fb
commit 543b5199b6
6 changed files with 9 additions and 9 deletions

View File

@ -164,7 +164,7 @@ class Dinks(commands.Cog):
embed = discord.Embed(colour=discord.Colour.blue()) embed = discord.Embed(colour=discord.Colour.blue())
embed.set_author(name="Bank van {}".format(ctx.author.display_name)) embed.set_author(name="Bank van {}".format(ctx.author.display_name))
embed.set_thumbnail(url=str(ctx.author.avatar_url)) embed.set_thumbnail(url=str(ctx.author.avatar.url))
embed.add_field(name="Level:", value=str(response[2]) + maxLevels, inline=True) embed.add_field(name="Level:", value=str(response[2]) + maxLevels, inline=True)
embed.add_field(name="Ratio:", value=str(ratio), inline=True) embed.add_field(name="Ratio:", value=str(ratio), inline=True)
embed.add_field(name="Prijs voor volgend level:", value="{:,}".format(interestLevelPrice), inline=False) embed.add_field(name="Prijs voor volgend level:", value="{:,}".format(interestLevelPrice), inline=False)

View File

@ -33,7 +33,7 @@ class ModCommands(commands.Cog):
try: try:
self.client.load_extension("cogs.{}".format(extension)) self.client.load_extension("cogs.{}".format(extension))
await self.sendDm(constants.myId, "Loaded **{}**".format(extension)) await self.sendDm(constants.myId, "Loaded **{}**".format(extension))
except discord.ext.commands.errors.ExtensionAlreadyLoaded: except discord.ExtensionAlreadyLoaded:
await self.sendDm(constants.myId, "**{}** has already been loaded".format(extension)) await self.sendDm(constants.myId, "**{}** has already been loaded".format(extension))
@commands.command(name="Config", aliases=["Setup", "Set"], case_insensitive=True, usage="[Categorie] [Value]", @commands.command(name="Config", aliases=["Setup", "Set"], case_insensitive=True, usage="[Categorie] [Value]",
@ -59,7 +59,7 @@ class ModCommands(commands.Cog):
try: try:
self.client.unload_extension("cogs.{}".format(extension)) self.client.unload_extension("cogs.{}".format(extension))
await self.sendDm(constants.myId, "Unloaded **{}**".format(extension)) await self.sendDm(constants.myId, "Unloaded **{}**".format(extension))
except discord.ext.commands.errors.ExtensionNotLoaded: except discord.ExtensionNotLoaded:
await self.sendDm(constants.myId, "**{}** has already been unloaded".format(extension)) await self.sendDm(constants.myId, "**{}** has already been unloaded".format(extension))
# Unload all cogs except for modCommands # Unload all cogs except for modCommands
@ -181,7 +181,7 @@ class ModCommands(commands.Cog):
embed = discord.Embed(colour=discord.Colour.blue()) embed = discord.Embed(colour=discord.Colour.blue())
embed.set_author(name=user.display_name, icon_url=user.avatar_url) embed.set_author(name=user.display_name, icon_url=user.avatar.url)
embed.add_field(name="Discriminator", value=f"#{user.discriminator}") embed.add_field(name="Discriminator", value=f"#{user.discriminator}")
embed.add_field(name="Discord id", value=user.id) embed.add_field(name="Discord id", value=user.id)
embed.add_field(name="Bot", value="Nee" if not user.bot else "Ja") embed.add_field(name="Bot", value="Nee" if not user.bot else "Ja")

View File

@ -93,7 +93,7 @@ class SelfPromo(commands.Cog):
async def createPersonalPromo(self, ctx, user, link, colour, type): async def createPersonalPromo(self, ctx, user, link, colour, type):
embed = discord.Embed(colour=colour) embed = discord.Embed(colour=colour)
embed.set_author(name="{} Links".format(type), icon_url=user.avatar_url) embed.set_author(name="{} Links".format(type), icon_url=user.avatar.url)
embed.add_field(name="{} link van {}".format(type, user.display_name), value=link) embed.add_field(name="{} link van {}".format(type, user.display_name), value=link)
await ctx.send(embed=embed) await ctx.send(embed=embed)

View File

@ -109,7 +109,7 @@ class Store(commands.Cog):
inv = sorted(inv, key=lambda x: x[1]) inv = sorted(inv, key=lambda x: x[1])
embed = discord.Embed(colour=discord.Colour.blue()) embed = discord.Embed(colour=discord.Colour.blue())
embed.set_author(name="Inventory van {}".format(ctx.author.display_name)) embed.set_author(name="Inventory van {}".format(ctx.author.display_name))
embed.set_thumbnail(url=str(ctx.author.avatar_url)) embed.set_thumbnail(url=str(ctx.author.avatar.url))
if len(inv) == 0: if len(inv) == 0:
embed.description = "Je hebt nog niets gekocht!\n" \ embed.description = "Je hebt nog niets gekocht!\n" \
"Koop iets in de Store wanneer DJ STIJN niet langer te lui is om er iets in te steken." "Koop iets in de Store wanneer DJ STIJN niet langer te lui is om er iets in te steken."

View File

@ -27,7 +27,7 @@ class Xp(commands.Cog):
perc = round(int(target_stats[11]) * 100/message_count, 2) perc = round(int(target_stats[11]) * 100/message_count, 2)
embed = discord.Embed(colour=discord.Colour.blue()) embed = discord.Embed(colour=discord.Colour.blue())
embed.set_author(name=target.display_name, icon_url=target.avatar_url) embed.set_author(name=target.display_name, icon_url=target.avatar.url)
embed.add_field(name="Aantal Berichten", value="{:,} ({}%)".format(int(target_stats[11]), perc)) embed.add_field(name="Aantal Berichten", value="{:,} ({}%)".format(int(target_stats[11]), perc))
embed.add_field(name="Level", value=str(xp.calculate_level(target_stats[12]))) embed.add_field(name="Level", value=str(xp.calculate_level(target_stats[12])))
embed.add_field(name="XP", value="{:,}".format(int(target_stats[12]))) embed.add_field(name="XP", value="{:,}".format(int(target_stats[12])))

View File

@ -15,7 +15,7 @@ class EditSnipe:
member: discord.Member = guild.get_member(self.snipe.user) member: discord.Member = guild.get_member(self.snipe.user)
embed = discord.Embed(title="Edit Snipe", colour=discord.Colour.blue()) embed = discord.Embed(title="Edit Snipe", colour=discord.Colour.blue())
embed.set_author(name=member.display_name, icon_url=member.avatar_url) embed.set_author(name=member.display_name, icon_url=member.avatar.url)
embed.add_field(name="Voor", value=self.snipe.old, inline=False) embed.add_field(name="Voor", value=self.snipe.old, inline=False)
embed.add_field(name="Na", value=self.snipe.new, inline=False) embed.add_field(name="Na", value=self.snipe.new, inline=False)
@ -34,7 +34,7 @@ class DeleteSnipe:
member: discord.Member = guild.get_member(self.snipe.user) member: discord.Member = guild.get_member(self.snipe.user)
embed = discord.Embed(title="Delete Snipe", colour=discord.Colour.blue()) embed = discord.Embed(title="Delete Snipe", colour=discord.Colour.blue())
embed.set_author(name=member.display_name, icon_url=member.avatar_url) embed.set_author(name=member.display_name, icon_url=member.avatar.url)
embed.add_field(name="Message", value=self.snipe.old) embed.add_field(name="Message", value=self.snipe.old)
return embed return embed