Skip to content

Commit 33bf139

Browse files
authored
✨ tweak: update bot embed
1 parent 365e025 commit 33bf139

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
# Support Bot
1+
# Discord Bot
22

3-
A dedicated self-hosted forum-based support Discord bot for the thirdweb community. Specifically made for the [thirdweb](https://discord.gg/thirdweb) Discord community server.
3+
An AI-powered Discord bot that can help you build in Web3 with [thirdweb](https://thirdweb.com).
4+
5+
## Commands
6+
7+
- `!askai` or `!ask` - Ask the bot a question all things thirdweb.

src/bot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ client.on("messageCreate", async (message) => {
7474
let question = message.content.startsWith('!askai') ? message.content.slice(6) : message.content.slice(4)
7575
let aiMessageLoading = await message.channel.send({
7676
embeds: [
77-
sendEmbedMessage("**RESPONSE:** " + `<a:load:1210497921158619136>`),
77+
sendEmbedMessage("**🤖 Beep Boop Boop Beep:** " + `<a:load:1210497921158619136> thinking...`),
7878
],
7979
});
8080
await context.query({
@@ -84,9 +84,9 @@ client.on("messageCreate", async (message) => {
8484
// console.log(query.output.toString())
8585
await message.channel.messages.fetch(aiMessageLoading.id).then((msg) =>
8686
msg.edit({
87-
content: `<@${message.author.id}>`,
87+
content: `Hey <@${message.author.id}> 👇`,
8888
embeds: [
89-
sendEmbedMessage("**RESPONSE:** " + query.output.toString()),
89+
sendEmbedMessage(`**Response:**\n${query.output.toString()}`),
9090
],
9191

9292
})

src/utils/core.js

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const sendEmbedMessage = (message) => {
1212
return new EmbedBuilder()
1313
.setDescription(message)
1414
.setColor(`#f213a4`)
15+
.addFields(
16+
{ name: 'Need Help?', value: 'Submit a ticket here: https://thirdweb.com/support', inline: false}
17+
)
1518
.setTimestamp()
1619
.setFooter({ text: 'thirdweb', iconURL: 'https://ipfs.io/ipfs/QmTWMy6Dw1PDyMxHxNcmDmPE8zqFCQMfD6m2feHVY89zgu/Icon/Favicon-01.png' });
1720

0 commit comments

Comments
 (0)