add /coal and /version
This commit is contained in:
parent
4765ebf22c
commit
51b55bad36
18 changed files with 534 additions and 16 deletions
|
|
@ -14,13 +14,36 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { SlashCommandOptionsOnlyBuilder } from 'discord.js';
|
||||
import { ChatInputCommandInteraction, MessageFlags, SlashCommandBuilder } from 'discord.js';
|
||||
import yroo from './commands/yroo';
|
||||
import wiki from './commands/wiki';
|
||||
import coal from './commands/coal';
|
||||
import version from './commands/version';
|
||||
|
||||
function fakeCommand(name: string, description?: string) {
|
||||
const data = new SlashCommandBuilder()
|
||||
.setName(name)
|
||||
.setDescription(description? `[WIP] ${description}` : `[Comando non implementato]`);
|
||||
|
||||
async function execute(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.reply({
|
||||
content: 'Comando non implementato!',
|
||||
flags: MessageFlags.Ephemeral
|
||||
});
|
||||
}
|
||||
|
||||
return { data, execute };
|
||||
}
|
||||
|
||||
const commandList = [
|
||||
yroo,
|
||||
wiki
|
||||
wiki,
|
||||
coal,
|
||||
version,
|
||||
fakeCommand('dict', 'Cerca una parola nel dizionario nassiryota'),
|
||||
fakeCommand('userinfo', 'Mostra informazioni sull\'utente'),
|
||||
fakeCommand('bible', 'Leggi un versetto della Bibbia'),
|
||||
fakeCommand('rllaw', 'Leggi un articolo della legge italiana')
|
||||
];
|
||||
|
||||
export default commandList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue