From 79efb30b4b55208e70ae1f2f398bd5541999f2d4 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Thu, 16 Nov 2023 21:49:53 +0100 Subject: [PATCH] fetch owner --- commands/message/limited/clyde.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/message/limited/clyde.js b/commands/message/limited/clyde.js index bffe839..f2d9f52 100644 --- a/commands/message/limited/clyde.js +++ b/commands/message/limited/clyde.js @@ -8,6 +8,7 @@ const superagent = require('superagent') const { iconPill } = require('../../../labscore/utils/markdown') const { Permissions } = require("detritus-client/lib/constants"); +const { getUser } = require('../../../labscore/utils/users'); const quips = `Crunching the data, one byte at a time... Loading the knowledge banks, please wait... @@ -49,6 +50,7 @@ module.exports = { let input = args.text; + const owner = await getUser(context, context.guild.owner.id) // You can also reply with a gif, by using @gif("description of the gif you want to send"), for example if you wanted to send a cat gif, you would do: @gif("happy cat"). Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation. const prompt = `You are named Clyde - and are currently chatting in a Discord server. @@ -57,7 +59,7 @@ Do not include name: or message: in your response. Information about your environment: - The server you are in is called: ${context.guild.name} - - The server is owned by: ${context.guild.owner.username} + - The server is owned by: ${owner.user.username} - The channel you are in is called: #${context.channel.name} You can use this information about the chat participants in the conversation in your replies. Use this information to answer questions, or add flavor to your responses.