Skip to content

Commit

Permalink
Update v3.0.4
Browse files Browse the repository at this point in the history
Signed-off-by: cobalt <[email protected]>
  • Loading branch information
cobaltt7 committed Jul 24, 2024
1 parent 9cdd0eb commit c1745b9
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
node-version: 20.6.0
cache: npm

- name: Download autos data
- name: Download bad words
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/autos-data.ts" --output modules/auto/autos-data.ts
}}/raw/automod_bad-words.ts" --output modules/automod/bad-words.ts

- name: Download bad words
- name: Download autos data
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/bad-words.ts" --output modules/automod/bad-words.ts
}}/raw/autos_autos-data.ts" --output modules/autos/autos-data.ts

- name: Download dad
run:
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST }}/raw/dad.ts"
--output modules/auto/dad.ts
curl "https://gist.githubusercontent.com/${{ secrets.PRIVATE_GIST
}}/raw/autos_dad.ts" --output modules/autos/dad.ts

- name: Download strings
run:
Expand Down
2 changes: 2 additions & 0 deletions common/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export default {
(await import("@napi-rs/canvas").then(...callbacks)) &&
(await import("chart.js").then(...callbacks)),
autosTypeInChat: auto,
botRunTestingServer: auto,
executeCaesar: auto,
executeCoinFlip: auto,
formsPingForAppeals: auto,
joinsAutoKick: auto,
joinsDmRevision: auto,
threadsTestingServer: auto,
ticketsPingForReports: auto,
};
3 changes: 2 additions & 1 deletion modules/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import getCode, { run } from "./run.js";
import sayCommand, { say } from "./say.js";
import status from "./status.js";
import config from "../../common/config.js";
import features from "../../common/features.js";

defineMenuCommand(
{ name: "Edit Message", restricted: true, type: ApplicationCommandType.Message, access: false },
Expand All @@ -21,7 +22,7 @@ defineChatCommand(
description: "Run code on the bot",
restricted: true,
access:
process.env.NODE_ENV === "production" ?
features.botRunTestingServer && process.env.NODE_ENV === "production" ?
["@defaults", config.guilds.testing.id]
: undefined,
},
Expand Down
26 changes: 14 additions & 12 deletions modules/logging/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,20 @@ export async function messageReactionRemoveAll(
LoggingEmojis.Expression
} Reactions purged on [message](<${message.url}>) by ${message.author.toString()} in ${message.channel.toString()}`,
LogSeverity.ContentEdit,
{
embeds: [
{
fields: reactions.map((reaction) => ({
name: reaction.emoji.toString(),
value: `${reaction.count} reaction${reaction.count === 1 ? "" : "s"}`,
inline: true,
})),
color: Colors.Blurple,
},
],
},
reactions.size ?
{
embeds: [
{
fields: reactions.map((reaction) => ({
name: reaction.emoji.toString(),
value: `${reaction.count} reaction${reaction.count === 1 ? "" : "s"}`,
inline: true,
})),
color: Colors.Blurple,
},
],
}
: {},
);
}
export async function messageUpdate(
Expand Down
3 changes: 2 additions & 1 deletion modules/threads/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getThreadConfig, threadsDatabase } from "./misc.js";
import { syncMembers, updateMemberThreads, updateThreadMembers } from "./sync-members.js";
import { mentionUser } from "../settings.js";
import config from "../../common/config.js";
import features from "../../common/features.js";

defineEvent("threadCreate", async (thread) => {
if (thread.type === ChannelType.PrivateThread) return;
Expand All @@ -28,7 +29,7 @@ defineSubcommands(
description: "Manage threads",
restricted: true,
access:
process.env.NODE_ENV === "production" ?
features.threadsTestingServer && process.env.NODE_ENV === "production" ?
["@defaults", config.guilds.testing.id]
: undefined,
subcommands: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scradd",
"version": "3.0.3",
"version": "3.0.4",
"private": true,
"homepage": "https://discord.gg/FPv957V6SD",
"type": "module",
Expand Down

0 comments on commit c1745b9

Please sign in to comment.