Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-LYNN committed Dec 2, 2024
1 parent 58df0c1 commit 3c0377f
Show file tree
Hide file tree
Showing 101 changed files with 439 additions and 460 deletions.
44 changes: 44 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": "0.2",
"language": "en",
"dictionaries": [],
"languageSettings": [
{
"languageId": "typescript",
"words": [
"tryforge"
]
},
{
"languageId": "markdown",
"words": [
"Recieved",
"botforge",
"nolonger"
]
}
],
"words": [
"actionscript",
"agreedtoterms",
"atleast",
"Automod",
"botchannel",
"bughunter",
"cmdid",
"commandinfo",
"errorid",
"fieldone",
"fieldthree",
"freechannel",
"givemoney",
"howto",
"hypesquad",
"ibrokesomething",
"ifoundabug",
"Lynnux",
"reactionroles",
"useravatar",
"whois"
]
}
Empty file modified .gitignore
100644 → 100755
Empty file.
19 changes: 19 additions & 0 deletions .vscode/settings.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,41 @@
},
"i18n-ally.localesPaths": [],
"cSpell.words": [
"akiradb",
"animelookup",
"authorname",
"boop",
"booped",
"Català",
"Čeština",
"cleardata",
"commandblocked",
"Dansk",
"Deutsch",
"endfulfulll",
"fieldtwo",
"Frieren",
"highfive",
"iconicayansh",
"Italiano",
"jifoiwjoiwfjop",
"nommed",
"Norsk",
"parttime",
"Polski",
"Português",
"removedata",
"renancolombini",
"SHFEUHFWJFI",
"smugged",
"Svenska",
"thumbsup",
"Tiếng",
"topgg",
"tryforge",
"Türkçe",
"Việt",
"whattheanime",
"Ελληνικά",
"Русский",
"Српски",
Expand Down
6 changes: 5 additions & 1 deletion ChangeLog.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@

- [Dev] pulled to [Main]

## [[Dev]] ChangeLog | Aug 22 2024
## [[Dev]] ChangeLog | Nov 12 2024

### Added

- Voting command `a.vote`.
- About command `a.about`.
- UserInfo `a.userInfo`
- Different languages using i18n.

### Changed

- Anime Lookup (`/anime`)
- Swapped from plain JavaScript to TypeScript.

### Versions used

Expand Down
11 changes: 6 additions & 5 deletions Errors.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ table of content
| 100 | Continue | Indicates that the initial part of a request has been received. |
| 101 | Command Recieved | This code indicates that Akira has successfully received a command but hasn't started processing it yet. |
| 102 | Slash Recieved | Similar to 101, but with slash command. |
| 200 | Default Success | Used when a request is succesful.|
| 200 | Default Success | Used when a request is successful.|
| 201 | Created | The bot successfully processed the command and performed the requested action. |
| 204 | No Content | Akira executed the command, but there is no content to return |
| 301 | Moved Permanently | The command used has been deprecated. |
Expand All @@ -33,6 +33,7 @@ table of content
| 502 | Bad Gateway | Akira failed to retrieve or process data from an external API she relies on. |
| 503 | Service Unavailable | Akira's services are temporarily unavailable, possibly due to maintenance or an issue with the hosting service.|
| 504 | Gateway Timeout | Similar to 502, but specifically indicates that the server, while acting as a gateway or proxy, did not receive a timely response from the upstream server. |
| 600 | User tos missing | the user used doesn't have tos accepted. |
| 701 | Command not enabled | The command exists but is currently disabled by the bot owner or admins. |
| 702 | Unavailable In Channel | The requested feature or command is not available in the current channel.|
| 703 | User Blacklisted | The user is blacklisted and cannot use the bot's commands. |
Expand All @@ -46,14 +47,14 @@ table of content
| 711 | Command Requires Setup | The command cannot be executed because the bot or server requires initial setup. |
| 712 | Command Timed Out | The command was initiated but took too long to complete, and the bot timed out. |
| 713 | Disabled by Admin | The command has been explicitly disabled by a server admin or the bot owner, making it unavailable. |
| 714 | Invalid Command | The command was used in an wrong envirment, such as trying to use a server-specific command in a direct message. |
| 714 | Invalid Command | The command was used in an wrong environment, such as trying to use a server-specific command in a direct message. |
| 715 | Requires Elevated Role | The user needs a specific role to execute the command, and they lack that role. |
| 716 | Wrong author | The author using the interaction is not the author of the origional command. |
| 716 | Wrong author | The author using the interaction is not the author of the original command. |
| 717 | Missing Arguments | The user did not provide enough argument for this command. |
| 718 | Cannot be a guildID | The given argument is a guildID, which is not accepted in this field. |
| 718 | Need user/role/channel | The given argument expected a user, role or channel input. |
| 719 | should be m/r/c | Input should be a memer/role/channel |
| 720 | User doesnt have perms | The user who ran the command doesn't have the right server specific perms. |
| 719 | should be m/r/c | Input should be a member/role/channel |
| 720 | User doesn't have perms | The user who ran the command doesn't have the right server specific perms. |
| 721 | User cannot be Author | The user given cannot be the author. |
| 722 | Target user blocked | The user given has blocked someone/anyone from using this command on them. |
| 801 | Perms reply | when the user uses perms reply with wrong input. |
Expand Down
2 changes: 1 addition & 1 deletion NM-Edited.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This removes the Function Spam from Function overrides.

### encrypt.js / decrypt.js

Changed FIXED_IV to a custom IV so it doenst use the default IV of [ForgeScript]
Changed FIXED_IV to a custom IV so it doesn't use the default IV of [ForgeScript]

- location: `node_modules/@tryforge/forgescript/dist/native/crypto/` [.](./node_modules/@tryforge/forgescript/dist/native/crypto/encrypt.js)

Expand Down
20 changes: 13 additions & 7 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@

<div align="center">
<img src="https://cdn.lynnux.xyz/images/AkiraAvatar.png" width="50px">
<img src="https://akira.lynnux.xyz/assets/images/android-chrome-192x192.png" width="50px">
<h1>Akira Bot</h1>
<p>For ForgeScript v1.4.0</p>
<p>For ForgeScript v1.5.0</p>
</div>

## ✨Latest Updates

> - *Changed package to ForgeScript.*
## 🚧 Prerequisites

- [Node.js 18+](https://nodejs.org/en/download/)
- [ForgeScript](https://www.npmjs.com/package/forgescript/)

> ##### **Note:** We try to use the latest version of ForgeScript at all time but it can take some time to update commands to new versions.
> **Note:** We try to use the latest version of ForgeScript at all time but it can take some time to update commands to new versions.
## 📝 Tutorials
Copy to [*Repl.it*](./) `(soon)` <br>

Copy to [*Repl.it*](./) `(soon)`

Copy to a [*VPS/Server*](./) `(soon)`

## 📝 [Support Server](https://discord.gg/6JayS72cnF)

If you have major coding issues with this bot, please join and ask for help.

## 📸 Screenshots

<div align="left">
<img src="https://cdn.lynnux.xyz/images/image_2023-06-21_113232026.png">
<img src="https://akira.lynnux.xyz/_next/image?url=%2Fassets%2Fimages%2FAkira-Command-Preview_Kiss.png&w=640&q=75">
</div>
<div align="center">
<img src="https://cdn.lynnux.xyz/images/image_2023-06-21_113124654.png">
Expand All @@ -34,9 +38,11 @@ If you have major coding issues with this bot, please join and ask for help.
</div>

## 💨 Run the projects
[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](#) `(soon)`

[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](./#) `(soon)`

## ✨ Contributors

Contributions are always welcomed :D Make sure to follow [contribute.md](contribute.md)

<a href="https://github.com/LynnuxDev/Akira/graphs/contributors">
Expand Down
Empty file.
Empty file modified files/anime/51041e5f-31cf-44e1-9af1-66ee3d139c65.json
100644 → 100755
Empty file.
Empty file modified files/anime/e4eedaeb-8c72-457e-afc3-0d32fa5d774a.json
100644 → 100755
Empty file.
Empty file modified files/anime/not-found.json
100644 → 100755
Empty file.
Empty file modified files/commands.json
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions files/errors.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"description": "I didn't find this command, perhaps due to a typo or this is a non-existent command.",
"from": "Any"
},
"600": {
"title": ["User missing from database"],
"meaning": "User not found in database",
"description": "The user used was not found in the database and/or didn’t accept the terms of service.",
"from": "Client"
},
"706": {
"title": "Permission Denied! I Guess I'm Not That Powerful... Yet!",
"meaning": "Insufficient Bot Perms",
Expand Down
Empty file modified files/result.json
100644 → 100755
Empty file.
Empty file modified files/result.txt
100644 → 100755
Empty file.
Empty file modified files/test.json
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"author": "Lynnux",
"license": "MIT",
"dependencies": {
"@tryforge/forge.api": "github:tryforge/ForgeAPI",
"@tryforge/forge.db": "github:tryforge/forgedb#dev",
"@tryforge/forge.api": "github:tryforge/ForgeAPI#dev",
"@tryforge/forge.db": "github:tryforge/ForgeDB#dev",
"@tryforge/forge.topgg": "github:tryforge/ForgeTopGG#dev",
"@tryforge/forgescript": "github:tryforge/forgescript#dev",
"@tryforge/forgescript": "github:tryforge/ForgeScript#dev",
"@types/i18next": "^12.1.0",
"@types/node": "^22.5.0",
"@types/ws": "^8.5.12",
Expand Down
Empty file modified src/Api/Commands.ts
100644 → 100755
Empty file.
Empty file modified src/Api/KoFi.ts
100644 → 100755
Empty file.
Empty file modified src/Api/test.ts
100644 → 100755
Empty file.
Empty file modified src/Api/variables/deleteVar.ts
100644 → 100755
Empty file.
Empty file modified src/Api/variables/fetchVar.ts
100644 → 100755
Empty file.
Empty file modified src/Api/variables/getVar.ts
100644 → 100755
Empty file.
Empty file modified src/Api/variables/setVar.ts
100644 → 100755
Empty file.
34 changes: 0 additions & 34 deletions src/commands/Utility/settings.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 2 additions & 14 deletions src/commands/Global-Interactions/avatar.ts → src/commands/globalInteractions/avatar.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
interface Command {
name?: string;
aliases?: string[];
type: string;
description: string;
module: string;
sourcecode: string;
documentation?: string;
usage?: string;
example?: string;
version: string;
code: string;
}
import { InteractionCommand } from '@/types'

const commands: Command[] = [
const commands: InteractionCommand[] = [
{
type: "interactionCreate",
description: "Interaction used for userinfo and avatar",
Expand Down
29 changes: 13 additions & 16 deletions src/commands/Global-Interactions/close.ts → src/commands/globalInteractions/close.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
interface Command {
name?: string;
aliases?: string[];
type: string;
description: string;
module: string;
sourcecode: string;
documentation?: string;
usage?: string;
example?: string;
version: string;
code: string;
}
import { InteractionCommand } from '@/types'

const commands: Command[] = [
const commands: InteractionCommand[] = [
{
type: "interactionCreate",
description: "Close an interaction",
Expand All @@ -30,19 +18,28 @@ const commands: Command[] = [
$splitText[2] == origin if given
]
$disableConsoleErrors
$onlyIf[$splitText[0]==close;]
$onlyIf[$splitText[1]==$authorID;]
$switch[$splitText[2];
$case[anime;
$if[$fileExists[./files/$getUserVar[uuid;$authorID;not-found].json]==true;
$deleteFile[./files/$getUserVar[uuid;$authorID;not-found].json]
]
]
$case[message;
$if[$splitText[3]!=;
$if[$guildID!=;
$if[$channelHasPerms[$channelID;$clientID;ManageMessages]==true;
$!deleteMessage[$channelID;$splitText[3]]
]
]
]
]
]
$deleteCommand
$!deleteCommand
`
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 2 additions & 14 deletions ...eractions/triggers/onInteractionCreate.ts → ...eractions/triggers/onInteractionCreate.ts
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
interface Command {
name?: string;
aliases?: string[];
type: string;
description: string;
module: string;
sourcecode: string;
documentation?: string;
usage?: string;
example?: string;
version: string;
code: string;
}
import { InteractionCommand } from '@/types'

const commands: Command[] = [
const commands: InteractionCommand[] = [
{
type: "interactionCreate",
description: "Runs on every interaction.",
Expand Down
File renamed without changes.
Loading

0 comments on commit 3c0377f

Please sign in to comment.