@@ -75,21 +75,21 @@ async def send_message(chatbot: Bard, interaction, user_message: str, image=None
75
75
await interaction .followup .send (response , embeds = images_embed , wait = True )
76
76
await interaction .followup .send (embed = more_images_embed , wait = True )
77
77
elif isinstance (interaction , discord .message .Message ):
78
- await interaction .channel .send (text , embeds = images_embed )
78
+ await interaction .channel .send (response , embeds = images_embed )
79
79
await interaction .channel .send (embed = more_images_embed )
80
80
elif len (images_embed ) > 0 :
81
81
if isinstance (interaction , discord .Interaction ):
82
82
await interaction .followup .send (response , embeds = images_embed , wait = True )
83
83
elif isinstance (interaction , discord .message .Message ):
84
- await interaction .channel .send (text , embeds = images_embed )
84
+ await interaction .channel .send (response , embeds = images_embed )
85
85
else :
86
86
if isinstance (interaction , discord .Interaction ):
87
87
await interaction .followup .send (response , wait = True )
88
88
elif isinstance (interaction , discord .message .Message ):
89
- await interaction .channel .send (text )
89
+ await interaction .channel .send (response )
90
90
except Exception as e :
91
91
if isinstance (interaction , discord .Interaction ):
92
92
await interaction .followup .send (f">>> **ERROR: { e } **" )
93
93
elif isinstance (interaction , discord .message .Message ):
94
94
await interaction .channel .send (f">>> **ERROR: { e } **" )
95
- logger .exception (f"Error: { e } " )
95
+ logger .exception (f"Error: { e } " )
0 commit comments