🧹 More refactoring
This commit is contained in:
@ -27,7 +27,7 @@ class DatabaseFuncs():
|
||||
user: discord.User) -> bool
|
||||
hangman_reaction_test(message: discord.Message,
|
||||
user: discord.User) -> bool
|
||||
bedre_netflix_reaction_test(message: discord.Message,
|
||||
plex_reaction_test(message: discord.Message,
|
||||
user: discord.User) -> bool, bool,
|
||||
list
|
||||
imdb_commands()
|
||||
@ -206,7 +206,7 @@ class DatabaseFuncs():
|
||||
|
||||
return game_message
|
||||
|
||||
def bedre_netflix_reaction_test(self, message: discord.Message):
|
||||
def plex_reaction_test(self, message: discord.Message):
|
||||
"""
|
||||
Test if the given message is the response to a plex request.
|
||||
|
||||
@ -227,7 +227,7 @@ class DatabaseFuncs():
|
||||
Gwendolyn presented after the request.
|
||||
"""
|
||||
channel = message.channel
|
||||
old_messages_path = "gwendolyn/resources/bedre_netflix/"
|
||||
old_messages_path = "gwendolyn/resources/plex/"
|
||||
file_path = old_messages_path + f"old_message{str(channel.id)}"
|
||||
if os.path.isfile(file_path):
|
||||
with open(file_path, "r") as file_pointer:
|
||||
|
Reference in New Issue
Block a user