Added IRC support (WIP).

This commit is contained in:
2022-10-17 04:06:55 +02:00
parent f7113b72ce
commit 4ce3f77c63
9 changed files with 490 additions and 71 deletions

View File

@@ -1,26 +1,19 @@
'use strict';
module.exports = {
platform: 'irc',
user: {
id: 'clive',
key: 'abcdefgh12345678',
username: 'Clive',
// optional
gender: 'male',
countryCode: 'GB',
birthdate: new Date(1952, 11, 10),
avatar: 'https://i.imgur.com/IZwrjjG.png',
nick: 'aisha',
username: 'Aisha',
realName: 'Aisha',
},
operators: ['admin'],
uniqueUsername: false,
socket: 'ws://127.0.0.1:3000/socket',
api: 'http://127.0.0.1:3000/api',
server: 'irc.libera.chat',
port: 6697,
reconnectDelay: 10, // seconds
prefix: '~',
style: {
color: 'var(--message-56)',
},
channels: ['GamesNight'],
usernamePrefix: '@',
channels: ['##pendulum'],
games: ['mash', 'trivia', 'duck', 'ping', 'say', 'kill'],
trivia: {
mode: 'first', // first or timeout
@@ -29,5 +22,6 @@ module.exports = {
},
duck: {
interval: [10, 3600], // seconds
duck: ':duck:',
},
};