Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Aiden <amb@aspy.dev>
  • Loading branch information
SomeAspy committed Dec 8, 2023
1 parent 72104bb commit 595f870
Show file tree
Hide file tree
Showing 9 changed files with 469 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: SomeAspy
16 changes: 16 additions & 0 deletions .github/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Cyanea

> A custom bot for [Doujin Dojo](https://discord.gg/xsKF5U5aKw)
## Use it yourself

1. Rename `example.env` to `.env`
2. Rename `/db/db.example.json` to `/db/db.json`
3. Replace `PASTE YOUR TOKEN HERE` with your bot token
4. Run `pnpm i` in the bot folder
5. Run `pnpm run start` in the bot folder

- This bot uses a local database in db.json, see /db/db.example.json
- Requires Node v18.0.0+ - Not tested on LTS

### This was a paid commission
4 changes: 2 additions & 2 deletions commands/utility/slash.tagmanager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { delServerKey, newServerKey, readDB } from "../../lib/db.js";
import { delServerKey, newServerKey } from "../../lib/db.js";
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js";
export const data = new SlashCommandBuilder()
.setName("tagmanager")
Expand All @@ -16,7 +16,7 @@ export const data = new SlashCommandBuilder()
.setName("remove")
.setDescription("Remove a tag")
.addStringOption((option) => option.setName("trigger").setDescription("Text to trigger response").setRequired(true))
)
);


export async function execute(interaction) {
Expand Down
3 changes: 1 addition & 2 deletions lib/pushCommands.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { getTopLevel } from './db.js';
import { slashCommandData } from '../indexers/slashIndexer.js';
import { devMode } from './flags.js';
import { REST } from '@discordjs/rest';
import { Routes } from 'discord-api-types/v9';
import { REST, Routes } from 'discord.js';
import colors from 'lighter-colors';
import dotenv from 'dotenv';
dotenv.config();
Expand Down
2 changes: 1 addition & 1 deletion lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function placeholders(message) {
"prefix": message.client.prefix,
"author": message.author.tag,
"moderator": message.author.tag,
}
};
}

export function fillPlaceholders(string, message, extra = {}) {
Expand Down
396 changes: 396 additions & 0 deletions license.txt

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"license": "GPL-3.0-only",
"dependencies": {
"@discordjs/builders": "^1.7.0",
"@discordjs/rest": "^2.2.0",
"discord-api-types": "^0.37.65",
"discord.js": "^14.14.1",
"dotenv": "^16.3.1",
"lighter-colors": "^1.0.0"
Expand Down
51 changes: 23 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
### Wanted Features:
- ~~Ban~~
- ~~Kick~~
- Mute
- ~~Timeout~~
- See Muted Channel
- Music
- Deafen
- VC Mute
- ~~Add Role~~
- Auto Give Role
- ~~React To Phrases~~
- ~~Text Back to Phrases~~
- Black/Whitelist Links
- Search Images On Google
- Website

### Privileged Intents:
- Message Content Intent
- React to phrases
- Text back to phrases
- Black/Whitelist links
- Server Members Intent
- Auto give role

TODO:
- Fix Ban/Kick Not Taking IDs
- ~~Gracefully Crash On Bad Database~~
- Move away from JSON Database

0 comments on commit 595f870

Please sign in to comment.