Skip to content

Commit 1446248

Browse files
committed
release 1.1.3: update deps and general cleanup
1 parent 408c87d commit 1446248

File tree

7 files changed

+21
-8
lines changed

7 files changed

+21
-8
lines changed

bot/events/ready.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function updatePresence() {
77
client.user.setPresence({
88
activities: [
99
{
10-
name: `Publishing from ${client.guilds.cache.size} servers [${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0).toLocaleString('en-US')} members]`,
10+
name: `Publishing from ${client.guilds.cache.size} servers [${client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0).toLocaleString()} members]`,
1111
type: ActivityType.Custom,
1212
},
1313
],

bot/utils/addPermissionsToChannel.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import type { NewsChannel } from "discord.js";
22
import client from "..";
33
import log from "./log";
44

5+
/**
6+
* Permissions manager for the bot
7+
* @param targetChannel The target channel ID
8+
* @returns `boolean`
9+
*/
510
export default async function addPermissionsToChannel(targetChannel: NewsChannel): Promise<boolean> {
611
try {
712
if (client.user) {

bot/utils/log.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const targetChannel = process.env.DISCORD_LOGGING_CHANNEL;
77
* Logs to the logging channel
88
* @param success Display error if false, success if true
99
* @param msg The message to be logged
10-
* @returns void
10+
* @returns `void`
1111
*/
12-
export default async function (success: boolean, msg: string) {
12+
export default async function (success: boolean, msg: string): Promise<void> {
1313
if (!targetChannel || targetChannel === undefined || targetChannel === '') return;
1414

1515
const embed = new EmbedBuilder()

bot/utils/quickEmbed.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import { EmbedBuilder, type Client, type ColorResolvable, type CommandInteraction } from "discord.js";
22

3+
/**
4+
* Quick embed builder
5+
* @param color Color of the embed
6+
* @param interaction Interaction that triggered the command
7+
* @param client The bot client
8+
* @returns `EmbedBuilder`
9+
*/
310
export default function (
411
{ color, title, description }: { color: ColorResolvable; title: string; description: string },
512
interaction?: CommandInteraction,
613
client?: Client
7-
) {
14+
): EmbedBuilder {
815
return new EmbedBuilder()
916
.setColor(color)
1017
.setTitle(title)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "autopublish",
33
"module": "bot/index.ts",
44
"type": "module",
5-
"version": "1.1.2",
5+
"version": "1.1.3",
66
"scripts": {
77
"start": "bun ."
88
},

site/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ <h3>Links</h3>
202202
</section>
203203
<br />
204204
<span
205-
><b>Current version (1.1.2)</b> released <b>8th September 2024</b></span
205+
><b>Current version (1.1.3)</b> released
206+
<b>16th September 2024</b></span
206207
>
207208
</main>
208209
</body>

0 commit comments

Comments
 (0)