jamisonl avatar
jamisonl
peculiarTanMouse
HTTP
Forked from camajudson/handleDiscordInteraction
0
xi8s avatar
xi8s
handleDiscordInteraction
HTTP
disco bot
0
jamisonl avatar
jamisonl
lavenderPinniped
HTTP
Forked from camajudson/handleDiscordInteraction
0
meshack254 avatar
meshack254
handleDiscordInteraction
Script
An interactive, runnable TypeScript val by meshack254
0
meglado avatar
meglado
lovelyBeigeSole
Script
Forked from dglazkov/discordBot
0
jamisonl avatar
jamisonl
sunnyAmberCrane
HTTP
Forked from camajudson/handleDiscordInteraction
0
jamisonl avatar
jamisonl
handleDiscordInteraction
HTTP
Forked from camajudson/handleDiscordInteraction
0
dglazkov avatar
dglazkov
discordBot
Script
A simple Discord Bot scaffolding, a slight rev on the one in the valtown guide . The discordBot function takes in an object where each key is a Discord command and the value is a function to handle the command. If the function returns a Promise , it will be handled as a deferred interaction with a followup message . Usage: import { discordBot } from "https://esm.town/v/dglazkov/discordBot"; const echo = async (data) => { await new Promise((r) => setTimeout(r, 5000)); return { type: 4, data: { content: data.data.options[0].value, }, }; }; export default discordBot({ ping: () => ({ type: 4, data: { content: `Pong! It is ${new Date()}`, }, }) echo, });
2
jamisonl avatar
jamisonl
aloneBronzeCattle
HTTP
Forked from camajudson/handleDiscordInteraction
0
camajudson avatar
camajudson
tanLadybug
HTTP
Forked from camajudson/handleDiscordInteraction
0
jamisonl avatar
jamisonl
copperMammal
HTTP
Forked from camajudson/handleDiscordInteraction
0
jamisonl avatar
jamisonl
ruralCrimsonGuppy
HTTP
Forked from camajudson/handleDiscordInteraction
0
jamisonl avatar
jamisonl
adorableRedChameleon
HTTP
Forked from camajudson/handleDiscordInteraction
0
axif0 avatar
axif0
handleDiscordInteraction
Script
// Handle other interactions here
1
mattx avatar
mattx
examplebotendpoint
Express (deprecated)
An interactive, runnable TypeScript val by mattx
0
camajudson avatar
camajudson
handleDiscordInteraction
HTTP
Forked from maxm/discordBotExample
0
Updated: October 23, 2023