mouse484 / ecstar Goto Github PK
View Code? Open in Web Editor NEWThe easiest JavaScript/TypeScript Discord bot framework.
Home Page: http://ecstar.js.org
License: MIT License
The easiest JavaScript/TypeScript Discord bot framework.
Home Page: http://ecstar.js.org
License: MIT License
Command/Event
and add #70 command descriptions
指定したギルドのみ実行可能
help command にも対応してほしい #44
export = class extends Command {
constructor(client) {
super(client, {
name: 'command name', //Required
guildsonly: ['443320971609374721', '391390986770710528'] // <--ここ
});
}
run(message) {
// ...
}
};
Unify by deriving from base class
Import directories recursively
process.argv[1]を利用している事で見つけれないことが発生してしまう
node .
なら◯
node index.js
は✕
settingにbotについての各種設定(特にID関連)を保存できるように
If
before command execution
Like this:
ifRun: message => message.channel.id === 'id';
Solve problems #76
But the same as adding an if at the beginning of the run function
Discord.js v12
結構前にもこの話あったような気がするけどgithubのissuesに置いとく
ja: ヘルプコマンド
コマンドをオンオフする方法はコマンドでやるみたいな、たとえば
(プレフィックス)cmdswitch [コマンドの名前] [false or true]
now:
commands
- dir
- file
next
commands
- file
- file
- file
Easy use of Ecstar from command
Arrange what need
Describe the bug
Steps to reproduce
Expected behavior
version
Additional context
コマンドのエイリアス
module.exports = class extends command {
constructor(client) {
super(client, {
name: 'help',
aliases: ['tasukete', '助けて', 'ヘルプ'],
});
}
run(message) {
//...
}
};
Inherit Discord.js type (Message, Channel etc)
Can be referred directly from Ecstar
use anycop->err
Whether there is something else good
'event' directory is required
events
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.