Skip to content

Commit

Permalink
Initial dpy2 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
elijabesu committed Jul 15, 2022
1 parent 15b5d19 commit bcb1d3c
Show file tree
Hide file tree
Showing 34 changed files with 79 additions and 86 deletions.
4 changes: 2 additions & 2 deletions advancedlock/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .advancedlock import AdvancedLock


def setup(bot):
bot.add_cog(AdvancedLock(bot))
async def setup(bot):
await bot.add_cog(AdvancedLock(bot))
2 changes: 1 addition & 1 deletion advancedlock/advancedlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ async def setlock_settings(self, ctx: commands.Context):
if c_list == []:
c_desc = "Not specified"
embed = discord.Embed(colour=await ctx.embed_colour(), timestamp=datetime.now())
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Advanced Lock settings:__**"
embed.add_field(name="Enabled:", value=toggle)
embed.add_field(name="Moderator role:", value=mod)
Expand Down
4 changes: 2 additions & 2 deletions application/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .application import Application


def setup(bot):
bot.add_cog(Application(bot))
async def setup(bot):
await bot.add_cog(Application(bot))
4 changes: 2 additions & 2 deletions application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def apply(self, ctx: commands.Context):
embed = discord.Embed(
color=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name="New application!", icon_url=ctx.author.avatar_url)
embed.set_author(name="New application!", icon_url=ctx.author.avatar)
embed.set_footer(
text=f"{ctx.author.name}#{ctx.author.discriminator} ({ctx.author.id})"
)
Expand Down Expand Up @@ -284,7 +284,7 @@ async def applyset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.set_footer(text="*required to function properly")

embed.title = "**__Application settings:__**"
Expand Down
4 changes: 2 additions & 2 deletions cookies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ async def setup_after_ready(bot):
for alias in command.aliases:
if bot.get_command(alias):
command.aliases[command.aliases.index(alias)] = f"c{alias}"
bot.add_cog(cog)
await bot.add_cog(cog)


def setup(bot):
async def setup(bot):
create_task(setup_after_ready(bot))
2 changes: 1 addition & 1 deletion cookies/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ async def cookieset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Cookies settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions cookiestore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ async def setup_after_ready(bot):
for alias in command.aliases:
if bot.get_command(alias):
command.aliases[command.aliases.index(alias)] = f"c{alias}"
bot.add_cog(cog)
await bot.add_cog(cog)


def setup(bot):
async def setup(bot):
create_task(setup_after_ready(bot))
6 changes: 3 additions & 3 deletions cookiestore/cookiestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def cookiestoreset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Cookie Store settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down Expand Up @@ -543,7 +543,7 @@ async def inventory(self, ctx: commands.Context):
)
embed.set_author(
name=f"{ctx.author.display_name}'s inventory",
icon_url=ctx.author.avatar_url,
icon_url=ctx.author.avatar,
)

await ctx.send(embed=embed)
Expand Down Expand Up @@ -632,7 +632,7 @@ async def _show_store(self, ctx):
)
embed.set_author(
name=f"{ctx.guild.name}'s cookie store",
icon_url=ctx.guild.icon_url,
icon_url=ctx.guild.icon,
)
page_list.append(embed)
return page_list
Expand Down
4 changes: 2 additions & 2 deletions counting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .counting import Counting


def setup(bot):
bot.add_cog(Counting(bot))
async def setup(bot):
await bot.add_cog(Counting(bot))
2 changes: 1 addition & 1 deletion counting/counting.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def countset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Counting settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions economyraffle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .economyraffle import EconomyRaffle


def setup(bot):
bot.add_cog(EconomyRaffle(bot))
async def setup(bot):
await bot.add_cog(EconomyRaffle(bot))
2 changes: 1 addition & 1 deletion economyraffle/economyraffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def economyraffleset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Economy Raffle settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions forwarding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .forwarding import Forwarding


def setup(bot):
async def setup(bot):
n = Forwarding(bot)
bot.add_cog(n)
await bot.add_cog(n)
6 changes: 3 additions & 3 deletions forwarding/forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def on_message_without_command(self, message):
description=message.content,
timestamp=message.created_at,
)
embed.set_author(name=message.author, icon_url=message.author.avatar_url)
embed.set_author(name=message.author, icon_url=message.author.avatar)
embed.set_footer(text=f"User ID: {message.author.id}")
await message.author.send("Message has been delivered.")
else:
Expand All @@ -82,7 +82,7 @@ async def on_message_without_command(self, message):
description=message.content,
timestamp=message.created_at,
)
embed.set_author(name=message.author, icon_url=message.author.avatar_url)
embed.set_author(name=message.author, icon_url=message.author.avatar)
embed.set_image(url=message.attachments[0].url)
embed.set_footer(text=f"User ID: {message.author.id}")
await message.author.send(
Expand Down Expand Up @@ -173,7 +173,7 @@ async def forwardset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Unique Name settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions gallery/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .gallery import Gallery


def setup(bot):
bot.add_cog(Gallery(bot))
async def setup(bot):
await bot.add_cog(Gallery(bot))
2 changes: 1 addition & 1 deletion gallery/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def galleryset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Unique Name settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions lock/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .lock import Lock


def setup(bot):
bot.add_cog(Lock(bot))
async def setup(bot):
await bot.add_cog(Lock(bot))
2 changes: 1 addition & 1 deletion lock/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def lockset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Lock settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
4 changes: 2 additions & 2 deletions lvlupcookies/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .lvlupcookies import LevelUpCookies


def setup(bot):
bot.add_cog(LevelUpCookies(bot))
async def setup(bot):
await bot.add_cog(LevelUpCookies(bot))
2 changes: 1 addition & 1 deletion lvlupcookies/lvlupcookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def levelupcookiesset_show(self, ctx: commands.Context):
)
embed.set_author(
name=f"Cookie rewards for {ctx.guild.name}",
icon_url=ctx.guild.icon_url,
icon_url=ctx.guild.icon,
)
page_list.append(embed)
await menu(ctx, page_list, DEFAULT_CONTROLS)
Expand Down
4 changes: 2 additions & 2 deletions marriage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def setup_after_ready(bot):
for alias in command.aliases:
if bot.get_command(alias):
command.aliases[command.aliases.index(alias)] = f"m{alias}"
bot.add_cog(cog)
await bot.add_cog(cog)

def setup(bot):
async def setup(bot):
create_task(setup_after_ready(bot))
6 changes: 3 additions & 3 deletions marriage/marriage.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async def marryset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Marriage settings:__**"
embed.add_field(name="Global:", value=str(is_global))
embed.add_field(name="Enabled*:", value=str(data["toggle"]))
Expand Down Expand Up @@ -492,9 +492,9 @@ async def about(
giftos.append(textos)
gift_text = "None" if giftos == [] else humanize_list(giftos)
e = discord.Embed(colour=member.color)
e.set_author(name=f"{member.name}'s Profile", icon_url=member.avatar_url)
e.set_author(name=f"{member.name}'s Profile", icon_url=member.avatar)
e.set_footer(text=f"{member.name}#{member.discriminator} ({member.id})")
e.set_thumbnail(url=member.avatar_url)
e.set_thumbnail(url=member.avatar)
e.add_field(name="About:", value=await m_conf.about(), inline=False)
e.add_field(name="Status:", value=rs_status)
if is_married:
Expand Down
4 changes: 2 additions & 2 deletions mentionable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .mentionable import Mentionable


def setup(bot):
bot.add_cog(Mentionable(bot))
async def setup(bot):
await bot.add_cog(Mentionable(bot))
4 changes: 2 additions & 2 deletions pick/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .pick import Pick


def setup(bot):
bot.add_cog(Pick(bot))
async def setup(bot):
await bot.add_cog(Pick(bot))
4 changes: 2 additions & 2 deletions pingable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .pingable import Pingable


def setup(bot):
bot.add_cog(Pingable(bot))
async def setup(bot):
await bot.add_cog(Pingable(bot))
2 changes: 1 addition & 1 deletion pingable/pingable.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def pingableset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Pingable settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down
2 changes: 1 addition & 1 deletion reacttickets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

async def setup(bot):
cog = ReactTickets(bot)
bot.add_cog(cog)
await bot.add_cog(cog)
await cog.initialize()
6 changes: 3 additions & 3 deletions reacttickets/reacttickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async def ticketset_settings(self, ctx: commands.Context):
embed = discord.Embed(
colour=await ctx.embed_colour(), timestamp=datetime.datetime.now()
)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name, icon_url=ctx.guild.icon)
embed.title = "**__Reaction Tickets settings:__**"
embed.set_footer(text="*required to function properly")

Expand Down Expand Up @@ -444,7 +444,7 @@ async def _open_ticket(
description="To close this ticket, react with 🔒 below.",
timestamp=datetime.datetime.utcnow(),
)
embed.set_thumbnail(url=user.avatar_url)
embed.set_thumbnail(url=user.avatar)
embed.set_footer(text=f"{user.name}#{user.discriminator} ({user.id})")
embed_user_message = await user_channel.send(
content=f"{user.mention}, a staff member will be with you shortly.",
Expand All @@ -457,7 +457,7 @@ async def _open_ticket(
description=reason,
timestamp=datetime.datetime.utcnow(),
)
embed.set_thumbnail(url=user.avatar_url)
embed.set_thumbnail(url=user.avatar)
manager_msg = await guild.get_channel(settings["channel"]).send(
content=f"User: {user.mention}\nChannel: {user_channel.mention}",
embed=embed,
Expand Down
4 changes: 2 additions & 2 deletions suggestion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .suggestion import Suggestion


def setup(bot):
bot.add_cog(Suggestion(bot))
async def setup(bot):
await bot.add_cog(Suggestion(bot))
Loading

0 comments on commit bcb1d3c

Please sign in to comment.