Skip to content

Commit

Permalink
img2img: add variant reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 16, 2023
1 parent 783181f commit c2dd2f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion discord_tron_master/classes/command_processors/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ async def send_message(command_processor, arguments: Dict, data: Dict, websocket
if arguments["audio_data"] is not None:
logging.debug(f"Incoming message had audio data. Embedding as a file.")
file=await get_audio_file(arguments["audio_data"])
await channel.send(content=arguments["message"], file=file, embeds=embeds)
message = await channel.send(content=arguments["message"], file=file, embeds=embeds)
# Add reactions
adding_reactions = [ '1️⃣', '2️⃣', '3️⃣', '4️⃣', '❌' ]
await command_processor.discord.attach_default_reactions(message, adding_reactions)
except Exception as e:
logging.error(f"Error sending message to {channel.name} ({channel.id}): {e}")
return {"success": True, "result": "Message sent."}
Expand Down

0 comments on commit c2dd2f9

Please sign in to comment.