mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-10 01:08:07 +01:00
style: remove unused imports, update readme
This commit is contained in:
parent
28584ed76a
commit
4c6de26ef0
4 changed files with 5 additions and 3 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
# Bun discord bot
|
||||||
|
Official serverless [discord](https://bun.sh/discord) bot for [bun](https://bun.sh/) runtime
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
@ -6,7 +6,7 @@ import { Logger } from './utils/Logger';
|
||||||
import config from '../files/config.toml';
|
import config from '../files/config.toml';
|
||||||
import loadCommands from './utils/loadCommands';
|
import loadCommands from './utils/loadCommands';
|
||||||
import { verifyKey } from './utils/verify';
|
import { verifyKey } from './utils/verify';
|
||||||
import { APIPingInteraction, APIApplicationCommandInteraction, APIMessageComponentInteraction, InteractionType, InteractionResponseType, ApplicationCommandType, APIApplicationCommandAutocompleteInteraction, ApplicationCommandOptionType, APIApplicationCommandOption } from 'discord-api-types/v10';
|
import { APIPingInteraction, APIApplicationCommandInteraction, APIMessageComponentInteraction, InteractionType, InteractionResponseType, ApplicationCommandType, APIApplicationCommandAutocompleteInteraction, ApplicationCommandOptionType } from 'discord-api-types/v10';
|
||||||
import { CommandContext } from './structures/contexts/CommandContext';
|
import { CommandContext } from './structures/contexts/CommandContext';
|
||||||
import { Commands } from './managers/CommandManager';
|
import { Commands } from './managers/CommandManager';
|
||||||
import registerCommands from './utils/registerCommands';
|
import registerCommands from './utils/registerCommands';
|
||||||
|
@ -72,7 +72,7 @@ app.post('/interaction', bodyParse(), async(c) => {
|
||||||
data: {
|
data: {
|
||||||
content: 'Beep boop. Boop beep?'
|
content: 'Beep boop. Boop beep?'
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
await Bun.serve({
|
await Bun.serve({
|
||||||
|
|
|
@ -34,7 +34,7 @@ export const findTags = (name: string) => {
|
||||||
name,
|
name,
|
||||||
value: name
|
value: name
|
||||||
}
|
}
|
||||||
]
|
];
|
||||||
else return findTags(null);
|
else return findTags(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue