We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233e986 commit c7c7c7aCopy full SHA for c7c7c7a
index.mjs
@@ -4,7 +4,7 @@ import { IrcAdapter, IrcResponse } from './IrcAdapter.mjs'
4
export default {
5
use(robot) {
6
const config = {
7
- nick: robot.name ?? robot.alias ?? process.env.HUBOT_IRC_NICK,
+ nick: process.env.HUBOT_IRC_NICK ?? robot.name ?? robot.alias,
8
realName: process.env.HUBOT_IRC_REALNAME ?? robot.name ?? robot.alias,
9
port: process.env.HUBOT_IRC_PORT ?? 6667,
10
rooms: process.env?.HUBOT_IRC_ROOMS?.split(','),
0 commit comments