Skip to content

Commit c7c7c7a

Browse files
authoredMar 5, 2024··
fix: Update bot nickname order of precedence to use ENV first (#7)
1 parent 233e986 commit c7c7c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IrcAdapter, IrcResponse } from './IrcAdapter.mjs'
44
export default {
55
use(robot) {
66
const config = {
7-
nick: robot.name ?? robot.alias ?? process.env.HUBOT_IRC_NICK,
7+
nick: process.env.HUBOT_IRC_NICK ?? robot.name ?? robot.alias,
88
realName: process.env.HUBOT_IRC_REALNAME ?? robot.name ?? robot.alias,
99
port: process.env.HUBOT_IRC_PORT ?? 6667,
1010
rooms: process.env?.HUBOT_IRC_ROOMS?.split(','),

0 commit comments

Comments
 (0)
Please sign in to comment.