Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FIyrr committed Nov 4, 2023
2 parents 4f28b0a + 6036030 commit ba2c420
Show file tree
Hide file tree
Showing 89 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cogs/commands/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
methods = os.listdir("./method")

for idx, ele in enumerate(methods):
methods[idx] = ele.replace(".txt", "")
methods[idx] = ele.replace(".md", "")

methods_enum = commands.option_enum(methods)

Expand All @@ -23,7 +23,7 @@ def __init__(self, bot):
async def method(
self, inter: disnake.ApplicationCommandInteraction, method: methods_enum
):
opened_file = open("./method/" + str(method) + ".txt")
opened_file = open("./method/" + str(method) + ".md")
file_content = opened_file.read()
print("Method Description: " + file_content)
opened_file.close()
Expand Down
4 changes: 2 additions & 2 deletions cogs/commands/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
commands_2 = os.listdir("./command_syntax")

for idx, ele in enumerate(commands_2):
commands_2[idx] = ele.replace(".txt", "")
commands_2[idx] = ele.replace(".md", "")

commands_enum = commands.option_enum(commands_2)

Expand All @@ -22,7 +22,7 @@ def __init__(self, bot):
)
async def syntax(self, inter: disnake.ApplicationCommandInteraction, command: str):
try:
opened_file = open("./command_syntax/" + str(command) + ".txt")
opened_file = open("./command_syntax/" + str(command) + ".md")
file_content = opened_file.read()
print("Command Syntax: " + file_content)
opened_file.close()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Automatically generated by https://github.com/damnever/pigar.

beautifulsoup4==4.12.1
beautifulsoup4==4.12.2
disnake==2.8.1
markdownify==0.11.6
requests==2.31.0
Requests==2.31.0

0 comments on commit ba2c420

Please sign in to comment.