make conversation easier to follow in websocket clients

pull/1/head
Drake 2 years ago
parent 44735d0230
commit 42d2f2fca9

@ -18,7 +18,6 @@ export default function init() {
) {
const channel = (await db.select(message.channelId.toString()))[0] as Channel;
const user = await bot.helpers.getUser(message.member?.id);
sendSocketMessage(user.username, message.content, message.channelId.toString());
await bot.helpers.startTyping(message.channelId);
let res = await AIs[message.channelId.toString()].complete(user.username, message.content);
@ -37,6 +36,7 @@ export default function init() {
history,
});
sendSocketMessage(user.username, message.content, message.channelId.toString());
sendSocketMessage(
AIs[message.channelId.toString()].name,
res,

Loading…
Cancel
Save