mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
fetch owner
This commit is contained in:
parent
1a69741b36
commit
79efb30b4b
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ const superagent = require('superagent')
|
||||||
const { iconPill } = require('../../../labscore/utils/markdown')
|
const { iconPill } = require('../../../labscore/utils/markdown')
|
||||||
|
|
||||||
const { Permissions } = require("detritus-client/lib/constants");
|
const { Permissions } = require("detritus-client/lib/constants");
|
||||||
|
const { getUser } = require('../../../labscore/utils/users');
|
||||||
|
|
||||||
const quips = `Crunching the data, one byte at a time...
|
const quips = `Crunching the data, one byte at a time...
|
||||||
Loading the knowledge banks, please wait...
|
Loading the knowledge banks, please wait...
|
||||||
|
@ -49,6 +50,7 @@ module.exports = {
|
||||||
|
|
||||||
let input = args.text;
|
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.
|
// 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.
|
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:
|
Information about your environment:
|
||||||
|
|
||||||
- The server you are in is called: ${context.guild.name}
|
- 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}
|
- 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.
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue