2021-10-31 21:33:18 +00:00
|
|
|
'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: {
|
2022-10-21 20:11:31 +00:00
|
|
|
// color: 'var(--message-56)',
|
2022-10-19 22:07:48 +00:00
|
|
|
},
|
2021-11-15 19:44:34 +00:00
|
|
|
operators: ['admin'],
|
2022-10-17 02:06:55 +00:00
|
|
|
server: 'irc.libera.chat',
|
|
|
|
port: 6697,
|
2023-11-13 21:56:46 +00:00
|
|
|
socket: 'ws://127.0.0.1:3000/socket/',
|
2022-10-21 20:11:31 +00:00
|
|
|
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: '@',
|
2022-10-21 20:11:31 +00:00
|
|
|
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',
|
|
|
|
],
|
2022-10-21 20:11:31 +00:00
|
|
|
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: {
|
2022-10-23 00:46:41 +00:00
|
|
|
red: 'red',
|
2022-11-01 04:59:17 +00:00
|
|
|
brown: 'brown',
|
2022-10-23 00:46:41 +00:00
|
|
|
orange: 'orange',
|
2022-11-01 04:59:17 +00:00
|
|
|
beige: 'beige',
|
2022-10-23 00:46:41 +00:00
|
|
|
yellow: 'yellow',
|
2022-11-01 04:59:17 +00:00
|
|
|
forest: 'forest',
|
2022-10-23 00:46:41 +00:00
|
|
|
green: 'green',
|
2022-11-01 04:59:17 +00:00
|
|
|
mint: 'mint',
|
2022-10-23 00:46:41 +00:00
|
|
|
cyan: 'cyan',
|
|
|
|
blue: 'blue',
|
2022-11-01 04:59:17 +00:00
|
|
|
sky: 'sky',
|
2022-10-23 00:46:41 +00:00
|
|
|
purple: 'purple',
|
2022-11-01 04:59:17 +00:00
|
|
|
violet: 'violet',
|
2022-10-23 00:46:41 +00:00
|
|
|
pink: 'pink',
|
|
|
|
grey: 'shadow',
|
2022-11-01 04:26:04 +00:00
|
|
|
silver: 'shadow',
|
2022-10-21 20:11:31 +00:00
|
|
|
},
|
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,
|
2023-04-09 23:23:19 +00:00
|
|
|
replyWordLimit: 70,
|
2023-04-09 20:47:19 +00:00
|
|
|
replyWordLimitPublic: true,
|
2023-04-08 23:44:22 +00:00
|
|
|
temperature: 1,
|
2023-04-09 23:23:19 +00:00
|
|
|
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,
|
2021-11-14 18:55:14 +00:00
|
|
|
timeout: 60,
|
2022-10-20 00:45:15 +00:00
|
|
|
bounds: {
|
|
|
|
rounds: [1, 30],
|
|
|
|
timeout: [5, 300],
|
|
|
|
},
|
2021-11-06 00:33:52 +00:00
|
|
|
},
|
2021-11-12 15:43:20 +00:00
|
|
|
duck: {
|
|
|
|
interval: [10, 3600], // seconds
|
2022-10-17 02:06:55 +00:00
|
|
|
duck: ':duck:',
|
2022-10-21 20:44:31 +00:00
|
|
|
missRatio: 0.25,
|
2021-11-12 15:43:20 +00:00
|
|
|
},
|
2022-10-20 03:38:47 +00:00
|
|
|
letters: {
|
|
|
|
length: 9,
|
2022-10-21 17:38:39 +00:00
|
|
|
timeout: 60,
|
2023-04-10 14:37:32 +00:00
|
|
|
consonantBias: 0.56, // for auto fill
|
2023-04-10 14:25:08 +00:00
|
|
|
// http://www.thecountdownpage.com/letters.htm
|
|
|
|
vowels: {
|
|
|
|
a: 15,
|
|
|
|
e: 21,
|
|
|
|
i: 13,
|
|
|
|
o: 13,
|
|
|
|
u: 5,
|
|
|
|
},
|
|
|
|
consonants: {
|
|
|
|
b: 2,
|
|
|
|
c: 3,
|
|
|
|
d: 6,
|
|
|
|
f: 2,
|
|
|
|
g: 3,
|
|
|
|
h: 2,
|
|
|
|
j: 1,
|
|
|
|
k: 1,
|
|
|
|
l: 5,
|
|
|
|
m: 4,
|
|
|
|
n: 8,
|
|
|
|
p: 4,
|
|
|
|
q: 1,
|
|
|
|
r: 9,
|
|
|
|
s: 9,
|
|
|
|
t: 9,
|
|
|
|
v: 1,
|
|
|
|
w: 1,
|
|
|
|
x: 1,
|
|
|
|
y: 1,
|
|
|
|
z: 1,
|
|
|
|
},
|
2022-10-20 03:38:47 +00:00
|
|
|
},
|
2023-04-10 03:54:27 +00:00
|
|
|
numbers: {
|
|
|
|
length: 6,
|
2023-04-12 15:13:24 +00:00
|
|
|
timeout: 90,
|
|
|
|
points: [3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1], // points by distance
|
2023-04-10 03:54:27 +00:00
|
|
|
},
|
2022-10-28 03:06:48 +00:00
|
|
|
riddle: {
|
2022-11-01 23:34:03 +00:00
|
|
|
timeout: 30,
|
2022-10-28 03:06:48 +00:00
|
|
|
score: false,
|
|
|
|
},
|
2022-10-23 22:25:13 +00:00
|
|
|
dice: {
|
2022-11-01 23:34:03 +00:00
|
|
|
maxRolls: 20,
|
2022-10-23 22:25:13 +00:00
|
|
|
maxFaces: 1000,
|
|
|
|
},
|
2022-11-01 23:34:03 +00:00
|
|
|
hunt: {
|
2022-10-30 03:21:32 +00:00
|
|
|
minLength: 5,
|
|
|
|
maxLength: 9,
|
2022-11-01 23:34:03 +00:00
|
|
|
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
|
|
|
},
|
2021-10-31 21:33:18 +00:00
|
|
|
};
|