Cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user