Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AkumaKodo/AkumaKodo
A blazing fast discord bot framework built on top of discordeno and typescript!
https://github.com/AkumaKodo/AkumaKodo
deno discord discord-api discord-deno discord-framework framework typescript
Last synced: 12 days ago
JSON representation
A blazing fast discord bot framework built on top of discordeno and typescript!
- Host: GitHub
- URL: https://github.com/AkumaKodo/AkumaKodo
- Owner: AkumaKodo
- License: apache-2.0
- Archived: true
- Created: 2022-03-11T05:42:16.000Z (over 2 years ago)
- Default Branch: stable
- Last Pushed: 2022-04-29T17:28:14.000Z (over 2 years ago)
- Last Synced: 2024-10-16T18:27:53.055Z (28 days ago)
- Topics: deno, discord, discord-api, discord-deno, discord-framework, framework, typescript
- Language: TypeScript
- Homepage: https://akumakodo.github.io/AkumaKodo/
- Size: 7.29 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-blazingly-fast - AkumaKodo - A blazing fast discord bot framework built on top of discordeno and typescript! (TypeScript)
README
# AkumaKodo
A blazing fast discord bot framework built on top of [discordeno](https://github.com/discordeno/discordeno) and [typescript](https://www.typescriptlang.org/)!
## Installation
[Click me](https://akumakodo.github.io/AkumaKodo/index.html#installation)
## Example bot
```ts
import { AkumaKodoBotCore } from "https://deno.land/x/[email protected]/mod.ts";
import { config as dotEnvConfig } from "https://deno.land/x/[email protected]/mod.ts";const env = dotEnvConfig({ export: true });
const TOKEN = env.DISCORD_BOT_TOKEN || "";// Bot configuration
const Bot = new AkumaKodoBotCore(
{
botId: BigInt("your-bot-id"),
events: {},
intents: ["Guilds", "GuildMessages", "GuildMembers"],
token: TOKEN,
},
{
optional: {
// False by default but we recommend using the built
// in logging system until your app hits production.
bot_debug_mode: true,
// Enables the built in events in the framework
bot_internal_events: {
// Allows the bot to reply to slash commands
interactionCreate: true,
},
},
required: {
// needed if you wish to use test slash commands.
bot_development_server_id: BigInt("your-guild-id"),
},
},
);// Our own custom event handler
Bot.client.events.ready = (_, payload) => {
Bot.container.logger.log("info", "ready", "Online and ready to work!");
};// Creates a command
Bot.container.utils.createCommand(Bot, {
trigger: "ping",
description: "ping pong",
scope: "Development",
run: async (interaction) => {
await Bot.container.utils.createCommandReply(
Bot,
interaction,
{
embeds: [
Bot.container.utils.embed().setColor("random")
.setDescription("pong!"),
],
},
false,
);
},
});// Creates ws connection and starts listening
await Bot.createBot();
```## Read the [documentation](https://akumakodo.github.io/AkumaKodo/) here!
### Change Log
The current can be found [here](https://akumakodo.github.io/AkumaKodo/misc/changelog.html)
Join my discord [@link](https://discord.com/invite/N79DZsm3m2) for support and feedback!