Skip to content

Commit

Permalink
actually save last nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Dec 4, 2024
1 parent b6c58e3 commit c3460b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/discord/modules/discord-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default (bot: DiscordBot): void => {
await event.guild?.setIcon(path);
await bot.discord.user?.setAvatar(path);
data.lastDiscordNickName = (await bot.getNickname()) ?? "Meta";
await data.save();
await bot.setNickname(
nicks[(Math.random() * nicks.length) | 0],
event.name
Expand Down

0 comments on commit c3460b6

Please sign in to comment.