Comments (6)
I don't think this would be beneficial to those that don't use aliases.
from slappey.
I don't think this would be beneficial to those that don't use aliases.
though it would for those who do use them and don't want to make 2 commands and copy the code
from slappey.
Why not just use the aliases as they are in slappey today?
from slappey.
Why not just use the aliases as they are in slappey today?
there are aliases already?
how do you use them
from slappey.
Why not just use the aliases as they are in slappey today?
there are aliases already?
how do you use them
Yes, slappey supports aliases by default.
Here is a basic test command:
const BaseCommand = require('../../utils/structures/BaseCommand');
module.exports = class TestCommand extends BaseCommand {
constructor() {
super('test', 'testing', ['alias1', 'alias2', 'etc']);
}
async run(client, message, args) {
for (const cmd of client.commands.array()){
console.log(cmd);
}
}
}
This has command with name: test
Also answers to the three aliases: alias1, alias2 and etc
Each element in the array (third parameter in the super) is an alias
from slappey.
Why not just use the aliases as they are in slappey today?
there are aliases already?
how do you use themYes, slappey supports aliases by default.
Here is a basic test command:const BaseCommand = require('../../utils/structures/BaseCommand'); module.exports = class TestCommand extends BaseCommand { constructor() { super('test', 'testing', ['alias1', 'alias2', 'etc']); } async run(client, message, args) { for (const cmd of client.commands.array()){ console.log(cmd); } } }
This has command with name: test
Also answers to the three aliases: alias1, alias2 and etcEach element in the array (third parameter in the super) is an alias
okay thanks ill try that
from slappey.
Related Issues (20)
- NPM Error - Missing script: "tsc" HOT 3
- Integration of `pnpm` package manager on `slappey new [...]`. HOT 1
- Dosnt work in linux terminal HOT 5
- Bot won't respond to even test command HOT 1
- Deprecation @ message.send HOT 5
- when i start my bot it gives and error. HOT 1
- guildMemberAdd event dosnt work HOT 4
- says slappey is not recognized as an intenal or external command when I try to do slappey
- why does it says 'slappey is not recognized as an internal or external command' when I try to do slappey HOT 4
- Trying to start on an hosting HOT 1
- /usr/bin/env: βnode\rβ: No such file or directory HOT 2
- I have problems to execute my commands after register in applicationCommands HOT 5
- 'slappey is not recognized as an internal or external command' when I try to do slappey HOT 1
- Slappey generates wrong file HOT 2
- How to create embed with slappey?
- Slash Commands are forced in august, how do I use slash commands on slappey? HOT 4
- Commands aren't posting/working HOT 4
- Add Eris support HOT 1
- "slappey gen event" will not generat event HOT 2
- Update bot code for DJS V13 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slappey.