Skip to content

Commit

Permalink
fix: Update bot nickname order of precedence to use ENV first (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell authored Mar 5, 2024
1 parent 233e986 commit c7c7c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IrcAdapter, IrcResponse } from './IrcAdapter.mjs'
export default {
use(robot) {
const config = {
nick: robot.name ?? robot.alias ?? process.env.HUBOT_IRC_NICK,
nick: process.env.HUBOT_IRC_NICK ?? robot.name ?? robot.alias,
realName: process.env.HUBOT_IRC_REALNAME ?? robot.name ?? robot.alias,
port: process.env.HUBOT_IRC_PORT ?? 6667,
rooms: process.env?.HUBOT_IRC_ROOMS?.split(','),
Expand Down

0 comments on commit c7c7c7a

Please sign in to comment.