fix: bot text confirmation on relay + rename @bridge to @gravity + channel dedup
This commit is contained in:
5
bot.py
5
bot.py
@@ -475,6 +475,11 @@ class GravityBot(commands.Bot):
|
|||||||
if text:
|
if text:
|
||||||
self.bridge.write_command(project, text, project_name=project)
|
self.bridge.write_command(project, text, project_name=project)
|
||||||
await message.add_reaction("📨")
|
await message.add_reaction("📨")
|
||||||
|
embed = discord.Embed(
|
||||||
|
description=f"📨 → **{project}** IDE에 전달됨\n`{text[:100]}`",
|
||||||
|
color=discord.Color.blurple(),
|
||||||
|
)
|
||||||
|
await message.channel.send(embed=embed, delete_after=10)
|
||||||
|
|
||||||
await self.process_commands(message)
|
await self.process_commands(message)
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
"contributes": {
|
"contributes": {
|
||||||
"chatParticipants": [
|
"chatParticipants": [
|
||||||
{
|
{
|
||||||
"id": "gravity-bridge.bridge",
|
"id": "gravity-bridge.gravity",
|
||||||
"name": "bridge",
|
"name": "gravity",
|
||||||
"fullName": "Gravity Bridge",
|
"fullName": "Gravity Bridge",
|
||||||
"description": "대화 히스토리를 Discord로 전송 + AI 제어",
|
"description": "대화 히스토리를 Discord로 전송 + AI 제어",
|
||||||
"isSticky": false
|
"isSticky": false
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
// Register @bridge Chat Participant for history relay
|
// Register @bridge Chat Participant for history relay
|
||||||
try {
|
try {
|
||||||
const participant = vscode.chat.createChatParticipant(
|
const participant = vscode.chat.createChatParticipant(
|
||||||
'gravity-bridge.bridge',
|
'gravity-bridge.gravity',
|
||||||
bridgeChatHandler
|
bridgeChatHandler
|
||||||
);
|
);
|
||||||
participant.iconPath = new vscode.ThemeIcon('radio-tower');
|
participant.iconPath = new vscode.ThemeIcon('radio-tower');
|
||||||
|
|||||||
Reference in New Issue
Block a user