Skip to content

Commit

Permalink
Configure the "about" command
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Aug 16, 2024
1 parent 64647be commit 9fa8d71
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/main/kotlin/org/quiltmc/community/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ suspend fun setupCollab() = ExtensibleBot(DISCORD_TOKEN) {
common()
database()

about {
name = "Cozy: Collab"
description = "Quilt's Discord bot, Community Collab edition."
}

extensions {
sentry {
distribution = "collab"
Expand All @@ -63,6 +68,13 @@ suspend fun setupDev() = ExtensibleBot(DISCORD_TOKEN) {
common()
database()

about {
name = "Cozy: Dev Tools"
description = "Quilt's Discord bot, Dev Tools edition.\n\n" +
"Once provided mappings commands, but you should use the Linkie Discord bot or " +
"[Linkie Web](https://linkie.shedaniel.dev/) going forward."
}

extensions {
if (GITHUB_TOKEN != null) {
add(::GithubExtension)
Expand All @@ -79,6 +91,13 @@ suspend fun setupQuilt() = ExtensibleBot(DISCORD_TOKEN) {
database(true)
settings()

about {
name = "Cozy: Community"
description = "Quilt's Discord bot, Community edition.\n\n" +
"Provides a ton of commands and other utilities, to help staff with moderation and provide users with " +
"day-to-day features on the main Discord server."
}

chatCommands {
defaultPrefix = "%"
enabled = true
Expand Down Expand Up @@ -206,6 +225,13 @@ suspend fun setupShowcase() = ExtensibleBot(DISCORD_TOKEN) {
database()
settings()

about {
name = "Cozy: Showcase"
description = "Quilt's Discord bot, Showcase edition.\n\n" +
"This bot is currently in development, but someday we hope it'll let you post in the showcase " +
"channels from your project servers."
}

extensions {
sentry {
distribution = "showcase"
Expand All @@ -215,8 +241,8 @@ suspend fun setupShowcase() = ExtensibleBot(DISCORD_TOKEN) {

suspend fun main() {
val bot = when (MODE) {
"dev" -> setupDev()
"collab" -> setupCollab()
"dev" -> setupDev()
"quilt" -> setupQuilt()
"showcase" -> setupShowcase()

Expand Down
7 changes: 7 additions & 0 deletions src/main/kotlin/org/quiltmc/community/_Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ suspend fun ExtensibleBotBuilder.common() {

dataAdapter(::MongoDBDataAdapter)

about {
logoUrl = "https://github.com/QuiltMC/art/blob/master/misc/cozy-icons/original-raster/cozy-discord.png?raw=true"

sourceButton("https://github.com/QuiltMC/cozy-discord")
websiteButton("https://quiltmc.org/")
}

applicationCommands {
// Need to disable this due to the slash command perms experiment
// syncPermissions = false
Expand Down

0 comments on commit 9fa8d71

Please sign in to comment.