Skip to content

Commit

Permalink
ladies and gentlemen i believe bump notifications are back
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Oct 29, 2024
1 parent f632e9a commit 69f37c0
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 166 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devdenbot",
"version": "8.3.1",
"version": "8.4.0",
"type": "module",
"main": "src/index.ts",
"engines": {
Expand Down
261 changes: 131 additions & 130 deletions src/Config.prod.ts
Original file line number Diff line number Diff line change
@@ -1,77 +1,78 @@
import { mention } from './util/users.js'
import { Config } from './config.type.js'
import { ButtonBuilder, ButtonStyle, EmbedBuilder } from 'discord.js'
import {mention} from './util/users.js'
import {Config} from './config.type.js'
import {ButtonBuilder, ButtonStyle, EmbedBuilder} from 'discord.js'

// Config file for the Developer Den server (.gg/devden)
export const config: Config = {
channels: {
welcome: '821743171942744114',
botCommands: '821820015917006868',
hotTake: '932661343520194640',
showcase: '847936633964724254',
auditLog: '1004782799955435540'
},
commands: {
daily: '1059214166075912225'
},
roles: {
tiers: [
'821743100203368458', // @everyone (tier 0)
'823167811555033150', // tier 1
'837653180774875178', // 2
'837661828405395476', // 3
'837662055921221712', // 4
'837662277577998356', // 5
'837662496432193640', // 6
'837662699235311616', // 7
'837662908703703070', // 8
'837663085657194546', // 9
'837663288064999424', // 10
'1126116421206818916' // very high
],
admin: '821814446749646853',
staff: '857288092741009478',
notable: '821815023223308300',
separators: {
general: '874786063493787658',
tags: '874783773605130280',
langs: '874783339981189240'
channels: {
welcome: '821743171942744114',
botCommands: '821820015917006868',
hotTake: '932661343520194640',
showcase: '847936633964724254',
auditLog: '1004782799955435540'
},
commands: {
daily: '1059214166075912225'
},
roles: {
tiers: [
'821743100203368458', // @everyone (tier 0)
'823167811555033150', // tier 1
'837653180774875178', // 2
'837661828405395476', // 3
'837662055921221712', // 4
'837662277577998356', // 5
'837662496432193640', // 6
'837662699235311616', // 7
'837662908703703070', // 8
'837663085657194546', // 9
'837663288064999424', // 10
'1126116421206818916' // very high
],
admin: '821814446749646853',
staff: '857288092741009478',
notable: '821815023223308300',
separators: {
general: '874786063493787658',
tags: '874783773605130280',
langs: '874783339981189240'
},
noPing: '848197427617595393',
bumpNotifications: '1300915104568705107'
},
clientId: '904478222455029821',
guildId: '821743100203368458',
poll: {
emojiId: '1029839969658880041',
yesEmojiId: '997496973093502986',
noEmojiId: '1012427085798723666'
},
pastebin: {
url: 'https://paste.developerden.org',
threshold: 20
},
branding: {
color: '#C6BFF7',
font: 'CascadiaCode.ttf',
welcomeMessage: (member) =>
`Welcome ${
mention(
member
)
} to the Developer Den!\nCurrent Member Count: ${member.guild.memberCount}`,
goodbyeMessage: (member) =>
`${
mention(
member
)
} has left! :(\nCurrent Member Count: ${member.guild.memberCount}`
},
noPing: '848197427617595393',
},
clientId: '904478222455029821',
guildId: '821743100203368458',
poll: {
emojiId: '1029839969658880041',
yesEmojiId: '997496973093502986',
noEmojiId: '1012427085798723666'
},
pastebin: {
url: 'https://paste.developerden.org',
threshold: 20
},
branding: {
color: '#C6BFF7',
font: 'CascadiaCode.ttf',
welcomeMessage: (member) =>
`Welcome ${
mention(
member
)
} to the Developer Den!\nCurrent Member Count: ${member.guild.memberCount}`,
goodbyeMessage: (member) =>
`${
mention(
member
)
} has left! :(\nCurrent Member Count: ${member.guild.memberCount}`
},

informationMessage: {
embed: new EmbedBuilder()
.setImage('https://static.developerden.org/banner.png')
.setTitle('⭐ About the Server ⭐')
.setDescription(`
informationMessage: {
embed: new EmbedBuilder()
.setImage('https://static.developerden.org/banner.png')
.setTitle('⭐ About the Server ⭐')
.setDescription(`
Welcome to the **Developer Den**!
We're a community of programmers who love to share knowledge and ideas.
Expand All @@ -89,65 +90,65 @@ To invite other people to this server, you can use either of these links:
https://developerden.org/discord
https://discord.gg/devden`),

buttonRows: [
[
new ButtonBuilder().setLabel('Permanent Invite Link')
.setURL('https://developerden.org/discord')
.setEmoji({
id: '1007753088003747910'
})
.setStyle(ButtonStyle.Link),
new ButtonBuilder().setLabel('Our GitHub Organization')
.setURL('https://github.com/TheDeveloperDen')
.setEmoji({
id: '1007741713026134107'
})
.setStyle(ButtonStyle.Link),
new ButtonBuilder().setLabel('Our Website')
.setURL('https://developerden.org')
.setEmoji('🌐')
.setStyle(ButtonStyle.Link)
],
[
{
faqId: 'codeblocks',
type: 'faq',
button: new ButtonBuilder().setLabel('How to share code')
.setStyle(ButtonStyle.Primary)
.setEmoji('📝')
},
{
faqId: 'ask',
type: 'faq',
button: new ButtonBuilder().setLabel('How to ask for help')
.setStyle(ButtonStyle.Primary)
.setEmoji('❓')
}
],
[
{
type: 'learning',
button: new ButtonBuilder().setLabel('Learn a new Language')
.setStyle(ButtonStyle.Success)
.setEmoji('📚')
}
],
[
{
type: 'faq',
faqId: 'role-info',
button: new ButtonBuilder().setLabel('Our Server Roles')
.setStyle(ButtonStyle.Success)
.setEmoji('🎖')
},
{
type: 'faq',
faqId: 'xp-guide',
button: new ButtonBuilder().setLabel('How XP works')
.setStyle(ButtonStyle.Success)
.setEmoji('⭐')
}
]
]
}
buttonRows: [
[
new ButtonBuilder().setLabel('Permanent Invite Link')
.setURL('https://developerden.org/discord')
.setEmoji({
id: '1007753088003747910'
})
.setStyle(ButtonStyle.Link),
new ButtonBuilder().setLabel('Our GitHub Organization')
.setURL('https://github.com/TheDeveloperDen')
.setEmoji({
id: '1007741713026134107'
})
.setStyle(ButtonStyle.Link),
new ButtonBuilder().setLabel('Our Website')
.setURL('https://developerden.org')
.setEmoji('🌐')
.setStyle(ButtonStyle.Link)
],
[
{
faqId: 'codeblocks',
type: 'faq',
button: new ButtonBuilder().setLabel('How to share code')
.setStyle(ButtonStyle.Primary)
.setEmoji('📝')
},
{
faqId: 'ask',
type: 'faq',
button: new ButtonBuilder().setLabel('How to ask for help')
.setStyle(ButtonStyle.Primary)
.setEmoji('❓')
}
],
[
{
type: 'learning',
button: new ButtonBuilder().setLabel('Learn a new Language')
.setStyle(ButtonStyle.Success)
.setEmoji('📚')
}
],
[
{
type: 'faq',
faqId: 'role-info',
button: new ButtonBuilder().setLabel('Our Server Roles')
.setStyle(ButtonStyle.Success)
.setEmoji('🎖')
},
{
type: 'faq',
faqId: 'xp-guide',
button: new ButtonBuilder().setLabel('How XP works')
.setStyle(ButtonStyle.Success)
.setEmoji('⭐')
}
]
]
}
}
63 changes: 32 additions & 31 deletions src/config.type.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
import { Snowflake } from 'discord.js'
import { BrandingConfig } from './util/branding.js'
import { InformationMessage } from './modules/information/information.js'
import {Snowflake} from 'discord.js'
import {BrandingConfig} from './util/branding.js'
import {InformationMessage} from './modules/information/information.js'

export interface Config {
guildId: string
clientId: string
poll?: {
emojiId: string
yesEmojiId: string
noEmojiId: string
}
pastebin: { url: string, threshold: number }
channels: {
welcome: string
botCommands: string
hotTake: string
showcase: string
auditLog: string
}
commands: {
daily: Snowflake
}
roles: {
tiers: Snowflake[]
admin: Snowflake
notable?: Snowflake
staff: Snowflake
separators: { general: Snowflake, tags: Snowflake, langs: Snowflake }
noPing: Snowflake
}
branding: BrandingConfig
informationMessage?: InformationMessage
guildId: string
clientId: string
poll?: {
emojiId: string
yesEmojiId: string
noEmojiId: string
}
pastebin: { url: string, threshold: number }
channels: {
welcome: string
botCommands: string
hotTake: string
showcase: string
auditLog: string
}
commands: {
daily: Snowflake
}
roles: {
tiers: Snowflake[]
admin: Snowflake
notable?: Snowflake
staff: Snowflake
separators: { general: Snowflake, tags: Snowflake, langs: Snowflake }
noPing: Snowflake,
bumpNotifications?: Snowflake
}
branding: BrandingConfig
informationMessage?: InformationMessage
}
Loading

0 comments on commit 69f37c0

Please sign in to comment.