Skip to content

Commit

Permalink
make bot nick configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
waveplate committed Jun 9, 2023
1 parent 76b48a9 commit 8fbb9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"nick": "discordbot",
"host": "irc.efnet.org",
"port": 6697,
"maxNickLength": 16,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ client.on('ready', () => {
channels[channelId] = client.channels.cache.get(channelId);
});

bots[client.user.id] = createBot(client.user.username);
bots[client.user.id] = createBot(config.nick);

bots[client.user.id].on('message', function (event) {
if(config.excludeNicks.includes(event.nick))
Expand Down

0 comments on commit 8fbb9bd

Please sign in to comment.