Skip to content

Commit

Permalink
CHORE: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KOOKIIEStudios committed Aug 4, 2022
1 parent cc69fc4 commit 4786377
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
13 changes: 8 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="<https://github.com/TEAM-SPIRIT-Productions/Lapis>")
embed_msg.add_field(name="Lazuli", value="<https://github.com/TEAM-SPIRIT-Productions/Lazuli>")
embed_msg.add_field(name="Team SPIRIT", value="<https://github.com/TEAM-SPIRIT-Productions>")

embed_msg.set_footer(text=config['SERVER_NAME'])
await ctx.send(embed=embed_msg)


def main():
print("Loading bot...")
bot.run(config['BOT_TOKEN'])
Expand Down

0 comments on commit 4786377

Please sign in to comment.