Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Changelog

on:
schedule:
- cron: "0 3 * * 1"
- cron: "0 3 * * *"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -37,4 +37,4 @@ jobs:
git diff --cached --quiet && exit 0

git commit -m "Update changelog"
git push origin main
git push origin changelog
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Our
env.sh

# Build extra
dist


# Logs
logs
*.log
Expand Down
3 changes: 2 additions & 1 deletion .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

"jsxSingleQuote": false,
"quoteProps": "as-needed",
"embeddedLanguageFormatting": "auto"
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf"
}
2 changes: 1 addition & 1 deletion .swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"type": "commonjs"
},
"sourceMaps": false,
"minify": true
"minify": false
}
34 changes: 0 additions & 34 deletions CHANGELOG.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/basic_client/events/ready.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { EventBuilder } = require("../../../dist");

new EventBuilder("clientReady", false, (context) => {
context.logger.log("Client connected!");
context.logger.warn(`Current user: ${context.client.user.username}`);
context.logger.warn(`Current prefix: ${context.client.prefix ?? "none"}`);
});
34 changes: 34 additions & 0 deletions examples/basic_client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const arox = require("../../dist/index");

const client = new arox.Client({
intents: 37376,
prefix: { enabled: true, prefix: "a!" },
logger: {
depth: 0,
},
autoRegisterCommands: false,
});

arox.setClient(client);
const command = new arox.CommandBuilder({
name: "arox",
description: "Arox test command",
slash: true,
prefix: true,
});
arox.clearClient();

command
.onMessage(function (ctx) {
const { message } = ctx;
void message.reply("Çalışıyom ulan şurda rahat bırak beni");
})
.onInteraction(function (ctx) {
const { interaction } = ctx;
void interaction.reply("Çalışıyom ulan şurda rahat bırak beni");
});

async function init() {
await client.login(process.env.BOT_TOKEN);
}
void init();
Loading
Loading