From 4786377f9c46a482febec0396d68b834d7af700a Mon Sep 17 00:00:00 2001 From: KOOKIIE <25145447+KOOKIIEStudios@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:05:22 +0800 Subject: [PATCH] CHORE: Update dependencies --- requirements.txt | 13 ++++++++----- src/main.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 94690b9..5a3785a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,17 @@ -aiohttp==3.7.4 +aiohttp==3.7.4.post0 +aiosignal==1.2.0 async-timeout==3.0.1 attrs==20.3.0 chardet==3.0.4 -discord.py==1.6.0 +charset-normalizer==2.1.0 +discord.py==1.7.3 +frozenlist==1.3.1 idna==3.0 idna-ssl==1.1.0 -lazuli==2.2.1 +lazuli==2.2.2 multidict==4.7.6 -mysql-connector-python==8.0.22 -protobuf==3.14.0 +mysql-connector-python==8.0.30 +protobuf==3.20.1 six==1.15.0 typing-extensions==3.7.4.3 yarl==1.5.1 diff --git a/src/main.py b/src/main.py index fec26fa..25cf57c 100644 --- a/src/main.py +++ b/src/main.py @@ -94,6 +94,36 @@ async def help_command(ctx): await ctx.send(embed=embed_msg) +@bot.command(name='credit', pass_context=True) +async def help_command(ctx): + """ + Easter egg command that gives the source of Lapis + """ + user_cog = bot.get_cog('UserCommands') + cmd_list = [command.name + "\n" for command in user_cog.get_commands()] + cmd_list_str = "" + + for cmd in cmd_list: + cmd_list_str += cmd + + embed_msg = discord.Embed( + title="Credits", + description="This bot is based on Lapis, an open-source Discord bot " + "for MapleStory private servers. Lapis is built on Lazuli, " + "an open-source Python library for interacting with Odin-like " + "MapleStory databases. Both projects are proudly brought to " + "you by Team SPIRIT.", + color=int(config['SERVER_COLOR'], 16) + 0x200 + ) + embed_msg.set_thumbnail(url=config['SERVER_IMG']) + embed_msg.add_field(name="Lapis", value="") + embed_msg.add_field(name="Lazuli", value="") + embed_msg.add_field(name="Team SPIRIT", value="") + + embed_msg.set_footer(text=config['SERVER_NAME']) + await ctx.send(embed=embed_msg) + + def main(): print("Loading bot...") bot.run(config['BOT_TOKEN'])