Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
gx1285 committed Jul 14, 2023
1 parent 24c7a79 commit b9d1ce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions config.example.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"token": "",
"owners": [
""
],
"mods": [
""
],
"owners": [""],
"mods": [""],
"channelIds": {
"error": "",
"botLog": "",
Expand All @@ -21,4 +17,4 @@
"sgcJsonChannelId": "",
"sgcJsonChannelIdv2": "",
"key": ""
}
}
2 changes: 1 addition & 1 deletion src/messages/superGlobalChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default async function (message: Message) {
if (!(await channelDB.get(message.channelId))) return;
if (message.author.bot || message.author.system || message.author.discriminator === '0000') return;
if (message.channel.type !== ChannelType.GuildText) return;
if (
if (
/(https?:\/\/)?(www\.)?(discord\.(gg|com|net)|discordapp\.(com|net)\/invite)\/[\dA-Za-z]+/g.test(
message.cleanContent.toLowerCase(),
) ||
Expand Down

0 comments on commit b9d1ce3

Please sign in to comment.