start irc with minisrv
This commit is contained in:
@@ -343,6 +343,13 @@ class WTVIRC {
|
||||
this.broadcast(`:${this.servername} NOTICE * :${message}\r\n`);
|
||||
}
|
||||
|
||||
sendWebTVNoticeTo(username, message) {
|
||||
const socket = Array.from(this.nicknames.keys()).find(s => this.nicknames.get(s) === username);
|
||||
if (socket) {
|
||||
socket.write(`:${this.servername} NOTICE * :${message}\r\n`);
|
||||
}
|
||||
}
|
||||
|
||||
sendToChannelAs(username, channel, message) {
|
||||
const users = this.getUsersInChannel(channel);
|
||||
for (const user of users) {
|
||||
|
||||
@@ -235,7 +235,12 @@
|
||||
"wtv-chat": {
|
||||
// wtv-chat (used for IRC)
|
||||
"port": 1630,
|
||||
"connections": 3
|
||||
"connections": 3,
|
||||
"run_irc_server": true,
|
||||
"irc_port": 1667,
|
||||
"modules": [
|
||||
"WTVIRC"
|
||||
]
|
||||
},
|
||||
"wtvchat": {
|
||||
// wtvchat://server:port/channel passthrough (wni official)
|
||||
|
||||
Reference in New Issue
Block a user