Skip to content

Commit

Permalink
chore: minor UX improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
soni801 committed May 27, 2023
1 parent 69c501e commit b88b2c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"Fixed the family tree output",
"Changed the formatting of the reminder creation message",
"Made the changelog list slightly easier to navigate",
"Minor code improvements"
"Minor code improvements",
"Minor UX changes"
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/events/ready.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { event } from '../types/events';
import {event} from '../types/events';
import Client from '../util/Client';
import {ActivityType} from "discord-api-types/v10";

/**
* The ready event
Expand All @@ -21,6 +22,9 @@ const ready: event<'ready'> = async (client: Client<true>) =>
throw e;
});

// Set the bot activity
client.user.setActivity('/help', { type: ActivityType.Listening })

client.logger.verbose(`Loaded ${client.guilds.cache.size} guild(s)`);
client.logger.verbose(`Loaded ${client.commands.size} command(s)`);
client.logger.info(`Logged in as ${client.user?.tag} with Soni Bot version ${client.version}`);
Expand Down
2 changes: 1 addition & 1 deletion src/util/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default class Client<T extends boolean = boolean> extends DiscordClient<T
return new EmbedBuilder(embed)
.setColor(CONSTANTS.COLORS.default)
.setFooter({
text: this.user?.tag ?? '',
text: ((this.user?.tag + ' ') ?? '') + `version ${this.version}`,
iconURL: this.user?.avatarURL({ extension: 'png' }) ?? '',
});
}
Expand Down

0 comments on commit b88b2c5

Please sign in to comment.