Reformat TODO comments
All checks were successful
Build Heidi Docker image / build-docker (push) Successful in 15s

This commit is contained in:
2023-12-09 17:35:04 +01:00
parent c6608e4695
commit 9b66061ee7
4 changed files with 9 additions and 8 deletions

10
bot.py
View File

@ -11,9 +11,9 @@ from heidi_client import *
install(show_locals=True) install(show_locals=True)
# TODO: Only post in heidi-spam channel # @todo Only post in heidi-spam channel
# TODO: yt-dlp music support # @todo yt-dlp music support
# TODO: Somehow upload voicelines more easily (from discord voice message?) # @todo Somehow upload voicelines more easily (from discord voice message?)
# Log to file # Log to file
@ -124,7 +124,7 @@ def user_entrance_sound_autocomplete(
for board in boards for board in boards
} # These are all sounds, organized per board } # These are all sounds, organized per board
# TODO: Initially only suggest boards, because there are too many sounds to show them all # @todo Initially only suggest boards, because there are too many sounds to show them all
completions: List[Choice[str]] = [] completions: List[Choice[str]] = []
for ( for (
board, board,
@ -224,7 +224,7 @@ async def magic_shell(interaction: Interaction, question: str) -> None:
) )
# TODO: Allow , separated varargs, need to parse manually as slash commands don't support varargs # @todo Allow , separated varargs, need to parse manually as slash commands don't support varargs
@client.tree.command(name="wähle", description="Heidi trifft die Wahl!") @client.tree.command(name="wähle", description="Heidi trifft die Wahl!")
@app_commands.rename(option_a="entweder") @app_commands.rename(option_a="entweder")
@app_commands.describe(option_a="Ist es vielleicht dies?") @app_commands.describe(option_a="Ist es vielleicht dies?")

View File

@ -8,6 +8,7 @@ from heidi_constants import *
print("Debug: Importing heidi_helpers.py") print("Debug: Importing heidi_helpers.py")
# @todo Normalize volume when playing
async def play_voice_line( async def play_voice_line(
interaction: Union[Interaction, None], interaction: Union[Interaction, None],
voice_channel: VoiceChannel, voice_channel: VoiceChannel,

View File

@ -178,7 +178,7 @@ class LSTMTextGenerator(textgen):
# Interface shit # Interface shit
# TODO: Also save/load generated prefixes # @todo Also save/load generated prefixes
def load(self): def load(self):
print(f"Loading \"{self.filename}\" LSTM model with {len(self.charbase)} characters from file.") print(f"Loading \"{self.filename}\" LSTM model with {len(self.charbase)} characters from file.")

View File

@ -8,8 +8,8 @@ from rich.traceback import install
install() install()
# NOTE: This is word based, not character based # NOTE: This is word based, not character based
# TODO: Serialize and save/load model (don't train on the server) # @todo Serialize and save/load model (don't train on the server)
# TODO: Maybe extract sentence beginnings and use them as starters? # @todo Maybe extract sentence beginnings and use them as starters?
class MarkovTextGenerator(textgen): class MarkovTextGenerator(textgen):
# The greater the order (prefix length), the lesser the variation in generation, but the better the sentences (generally). # The greater the order (prefix length), the lesser the variation in generation, but the better the sentences (generally).