fetch owner

This commit is contained in:
derpystuff 2023-11-16 21:49:53 +01:00
parent 1a69741b36
commit 79efb30b4b

View file

@ -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.