schat2-clive/config/default.js

127 lines
2.2 KiB
JavaScript
Raw Normal View History

'use strict';
module.exports = {
2022-10-18 23:24:13 +00:00
platform: 'schat',
2021-11-04 00:51:43 +00:00
user: {
2023-04-09 13:45:41 +00:00
id: 'clive',
username: 'Clive',
realName: 'Clive',
avatar: null,
key: null,
2021-11-04 00:51:43 +00:00
},
2022-10-19 22:07:48 +00:00
style: {
// color: 'var(--message-56)',
2022-10-19 22:07:48 +00:00
},
operators: ['admin'],
2022-10-17 02:06:55 +00:00
server: 'irc.libera.chat',
port: 6697,
socket: 'ws://127.0.0.1:3000/socket',
api: 'http://127.0.0.1:3000/api',
2021-11-06 00:33:52 +00:00
reconnectDelay: 10, // seconds
2021-11-04 00:51:43 +00:00
prefix: '~',
2022-10-18 23:24:13 +00:00
labels: true,
2023-04-09 13:45:41 +00:00
greeting: 'Hi, I am Clive, your game host!',
2022-10-17 02:06:55 +00:00
usernamePrefix: '@',
channels: ['GamesNight'],
2022-10-30 03:21:32 +00:00
games: [
2023-04-08 22:07:16 +00:00
'chat',
2022-10-30 03:21:32 +00:00
'mash',
'trivia',
'letters',
2023-04-10 03:54:27 +00:00
'numbers',
2022-10-30 03:21:32 +00:00
'hunt',
'8ball',
2022-11-02 05:16:17 +00:00
'geo',
2022-10-30 03:21:32 +00:00
'riddle',
'dice',
'rock-paper-scissors',
'duck',
'ping',
'say',
'kill',
'uptime',
'help',
],
schatColors: {
2022-10-27 22:22:00 +00:00
white: 'white',
blue: 'var(--message-40)',
2022-10-27 22:33:38 +00:00
navy: 'var(--message-40)',
2022-10-27 22:22:00 +00:00
},
schatColorAliases: {
red: 'red',
brown: 'brown',
orange: 'orange',
beige: 'beige',
yellow: 'yellow',
forest: 'forest',
green: 'green',
mint: 'mint',
cyan: 'cyan',
blue: 'blue',
sky: 'sky',
purple: 'purple',
violet: 'violet',
pink: 'pink',
grey: 'shadow',
2022-11-01 04:26:04 +00:00
silver: 'shadow',
},
2023-04-08 22:07:16 +00:00
chat: {
apiKey: null, // OpenAI
validModels: [
'gpt-3.5-turbo',
'text-davinci-003',
'gpt-4',
],
model: 'gpt-3.5-turbo',
2023-04-08 23:44:22 +00:00
userTokenLimit: 20000, // daily, roughly 100+ messages or $0.04 per user
userTokenPeriod: 24, // hours
2023-04-09 20:47:19 +00:00
replyTokenLimit: 1000,
replyWordLimit: 70,
2023-04-09 20:47:19 +00:00
replyWordLimitPublic: true,
2023-04-08 23:44:22 +00:00
temperature: 1,
history: 3,
2023-04-08 22:07:16 +00:00
rule: 'a tired game host',
rulePublic: true,
},
2021-11-06 00:33:52 +00:00
trivia: {
mode: 'first', // first or timeout
rounds: 10,
timeout: 60,
bounds: {
rounds: [1, 30],
timeout: [5, 300],
},
2021-11-06 00:33:52 +00:00
},
duck: {
interval: [10, 3600], // seconds
2022-10-17 02:06:55 +00:00
duck: ':duck:',
missRatio: 0.25,
},
2022-10-20 03:38:47 +00:00
letters: {
length: 9,
timeout: 60,
2022-10-20 03:38:47 +00:00
},
2023-04-10 03:54:27 +00:00
numbers: {
length: 6,
timeout: 60,
points: [10, 7, 7, 7, 7, 7, 5, 5, 5, 5, 5], // points by distance
},
2022-10-28 03:06:48 +00:00
riddle: {
timeout: 30,
2022-10-28 03:06:48 +00:00
score: false,
},
2022-10-23 22:25:13 +00:00
dice: {
maxRolls: 20,
2022-10-23 22:25:13 +00:00
maxFaces: 1000,
},
hunt: {
2022-10-30 03:21:32 +00:00
minLength: 5,
maxLength: 9,
guesses: [4, 4, 6, 7, 9],
// guesses: [2, 3, 4, 5, 6, 7], // by word length, last number repeats for longer words
2022-10-30 03:21:32 +00:00
},
2022-11-02 05:16:17 +00:00
geo: {
2022-11-06 01:06:04 +00:00
url: 'https://geo.unknown.name/',
2022-11-02 05:16:17 +00:00
},
};