This commit is contained in:
2024-08-09 17:13:41 +00:00
parent 6a3c617275
commit 48b04a50df
4 changed files with 13 additions and 12 deletions

View File

@@ -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)

View File

@@ -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<void>{
@@ -75,4 +75,4 @@ class Autorole extends Command{
}
};
export const command = new Autorole();
export const command = new ApplyRole();

View File

@@ -1,3 +0,0 @@
export function reactPreprocess(str: string){
return str.toLowerCase().replaceAll(' ', '');
}

View File

@@ -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",