More AI improvements
This commit is contained in:
parent
59d54b37fb
commit
dcd6778c19
5 changed files with 11 additions and 4 deletions
|
|
@ -37,8 +37,7 @@ const onAI = async (text: string, roomId: string, sender: string) => {
|
|||
let textMod = text.replace("!ai", "").trim().toLowerCase();
|
||||
let instructions = {
|
||||
prefferedLanguages: ["english", "slovak"],
|
||||
adminText:
|
||||
"Your name is Aslobot. Be concise, try to keep text as short as possible. Be helpful, but you are encouraged to be sarcastic and make fun of people",
|
||||
adminText: config.app.ai.prompt,
|
||||
alts: alts,
|
||||
} as IAdminInstructions;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,14 +16,17 @@ const alts: IAIAlt[] = [
|
|||
"macag",
|
||||
],
|
||||
alt: "black cat",
|
||||
information: "an evil cat, married to white cat",
|
||||
},
|
||||
{
|
||||
keys: ["macica", "macico"],
|
||||
alt: "white cat",
|
||||
information: "married to black cat",
|
||||
},
|
||||
{
|
||||
keys: ["gabor", "gaber", "martin", "marting"],
|
||||
alt: "hedgehog",
|
||||
information: "married to ai",
|
||||
},
|
||||
{
|
||||
keys: [
|
||||
|
|
@ -37,14 +40,17 @@ const alts: IAIAlt[] = [
|
|||
"madek",
|
||||
],
|
||||
alt: "beaver",
|
||||
information: "likes shoot fetish",
|
||||
},
|
||||
{
|
||||
keys: ["janys", "jano", "janeg", "janek", "aslanek", "aslan", "aslo"],
|
||||
alt: "lion",
|
||||
information: "the creator",
|
||||
},
|
||||
{
|
||||
keys: ["marek", "mareg", "macek", "maceg", "rod"],
|
||||
alt: "purple snake",
|
||||
information: "drives fast",
|
||||
},
|
||||
{
|
||||
keys: ["lara", "kostur", "kosturik"],
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
interface IAIAlt {
|
||||
keys: string[];
|
||||
alt: string;
|
||||
information?: string;
|
||||
}
|
||||
|
||||
interface IAdminInstructions {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const onAILeaderboard = (_text: string, roomId: string) => {
|
|||
const userNameMod =
|
||||
userName.charAt(0).toUpperCase() + userName.slice(1);
|
||||
|
||||
return `<li>${userNameMod}: cost <b>${cost}</b></li>`;
|
||||
return `<li>${userNameMod}: cost <b>${cost.toFixed(2)}$</b></li>`;
|
||||
};
|
||||
|
||||
const users = state.users.sort(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue