Cleanup
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
# Algo Discord Bot
|
# Algo Discord Bot
|
||||||
|
|
||||||
## Usage
|
## Run
|
||||||
|
|
||||||
1. Setup the environment variables in `.env`
|
1. Setup the environment variables in `.env`
|
||||||
2. `docker compose up -d`
|
2. `docker compose up -d`
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
- `/ping` repond with latency.
|
||||||
|
- `/applyrole` apply role to everyone in the guild. (max 1000 people)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function isRole(role: Role | APIRole): role is Role {
|
|||||||
return role['id'] !== null;
|
return role['id'] !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Autorole extends Command{
|
class ApplyRole extends Command{
|
||||||
get name(){return "applyrole";}
|
get name(){return "applyrole";}
|
||||||
get description(){return "Apply roles to every member. (Note. up to 1000 members)";}
|
get description(){return "Apply roles to every member. (Note. up to 1000 members)";}
|
||||||
async execute(interaction: CommandInteraction): Promise<void>{
|
async execute(interaction: CommandInteraction): Promise<void>{
|
||||||
@@ -75,4 +75,4 @@ class Autorole extends Command{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const command = new Autorole();
|
export const command = new ApplyRole();
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
export function reactPreprocess(str: string){
|
|
||||||
return str.toLowerCase().replaceAll(' ', '');
|
|
||||||
}
|
|
||||||
11
package.json
11
package.json
@@ -1,21 +1,20 @@
|
|||||||
{
|
{
|
||||||
"name": "tanikaze-amane",
|
"name": "arisu-tachibana",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "ts-node index.ts",
|
"test": "ts-node index.ts"
|
||||||
"clean": "rm -f ./*.js ./commands/*/*.js ./classes/**.js"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/konchinshih/Tanikaze-Amane.git"
|
"url": "git+https://github.com/konchinshih/algo-dcbot.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"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": {
|
"dependencies": {
|
||||||
"@types/node": "^20.3.2",
|
"@types/node": "^20.3.2",
|
||||||
"axios": "^1.6.2",
|
"axios": "^1.6.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user