Skip to content

Commit

Permalink
nick and username were swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
waveplate committed Jun 12, 2023
1 parent 6ae0408 commit 6b8178a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ client.on('messageCreate', message => {
if (bots[message.author.id] == null) {
client.guilds.fetch(message.guildId).then(guild => {
guild.members.fetch(message.author.id).then(member => {
bots[message.author.id] = createBot(message.author.username, member.nickname, () => {
bots[message.author.id] = createBot(member.nickname, message.author.username, () => {
relayMessage(ircChannel, message);
});
});
Expand Down

0 comments on commit 6b8178a

Please sign in to comment.