From 48b04a50df39e720f026eb51a948916be7c910ea Mon Sep 17 00:00:00 2001 From: ytshih Date: Fri, 9 Aug 2024 17:13:41 +0000 Subject: [PATCH] Cleanup --- README.md | 7 ++++++- commands/roles/applyrole.ts | 4 ++-- functions/react-preprocess.ts | 3 --- package.json | 11 +++++------ 4 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 functions/react-preprocess.ts diff --git a/README.md b/README.md index e173d84..63a00b9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # Algo Discord Bot -## Usage +## Run 1. Setup the environment variables in `.env` 2. `docker compose up -d` + +## Usage + +- `/ping` repond with latency. +- `/applyrole` apply role to everyone in the guild. (max 1000 people) diff --git a/commands/roles/applyrole.ts b/commands/roles/applyrole.ts index 5eaeb0d..0d56380 100644 --- a/commands/roles/applyrole.ts +++ b/commands/roles/applyrole.ts @@ -17,7 +17,7 @@ function isRole(role: Role | APIRole): role is Role { return role['id'] !== null; } -class Autorole extends Command{ +class ApplyRole extends Command{ get name(){return "applyrole";} get description(){return "Apply roles to every member. (Note. up to 1000 members)";} async execute(interaction: CommandInteraction): Promise{ @@ -75,4 +75,4 @@ class Autorole extends Command{ } }; -export const command = new Autorole(); +export const command = new ApplyRole(); diff --git a/functions/react-preprocess.ts b/functions/react-preprocess.ts deleted file mode 100644 index d94ceab..0000000 --- a/functions/react-preprocess.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function reactPreprocess(str: string){ - return str.toLowerCase().replaceAll(' ', ''); -} \ No newline at end of file diff --git a/package.json b/package.json index 325b18a..80fc25f 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,20 @@ { - "name": "tanikaze-amane", + "name": "arisu-tachibana", "version": "1.0.1", "main": "index.ts", "scripts": { - "test": "ts-node index.ts", - "clean": "rm -f ./*.js ./commands/*/*.js ./classes/**.js" + "test": "ts-node index.ts" }, "repository": { "type": "git", - "url": "git+https://github.com/konchinshih/Tanikaze-Amane.git" + "url": "git+https://github.com/konchinshih/algo-dcbot.git" }, "author": "", "license": "ISC", "bugs": { - "url": "https://github.com/konchinshih/Tanikaze-Amane/issues" + "url": "https://github.com/konchinshih/algo-dcbot/issues" }, - "homepage": "https://github.com/konchinshih/Tanikaze-Amane#readme", + "homepage": "https://github.com/konchinshih/algo-dcbot", "dependencies": { "@types/node": "^20.3.2", "axios": "^1.6.2",