Date: 2024/07/12 01:24:20 UTC-07:00
Type: Denizen Script
DiscordCommitCommand:
type: task
script:
- definemap options:
1:
type: string
name: commit
description: write a commit
required: true
- discordcommand id:magbungkal group:1142516104518967397 create name:commit "description:Pick options" options:<[options]>
DiscordCommitCommandEvents:
type: world
debug: false
events:
on discord slash command name:commit:
- ~discordinteraction defer interaction:<context.interaction>
- define user <context.interaction.user>
# generate a message for #commits channel
- define commit <context.options.deep_get[commit]>
- define commit_value <[commit].options>
- define commit_number <util.random.int[000].to[999]>
- definemap message_map:
title: <[commit_value]>
color: lime
footer: Commit | <[commit_number]>
- define embed <discord_embed.with_map[<[message_map]>]>
- ~discordmessage id:magbungkal channel:1260591676876001321 <[embed]>