Adds ICS
This commit is contained in:
parent
441715675c
commit
a79898b2e9
48 changed files with 2062 additions and 1503 deletions
|
|
@ -2,24 +2,24 @@ import {SlashCommandBuilder, CommandInteraction} from "discord.js";
|
|||
import {Command} from "./Command";
|
||||
|
||||
export class HelloWorldCommand implements Command {
|
||||
private static RESPONSES: string[] = [
|
||||
'Hello :)',
|
||||
'zzzZ... ZzzzZ... huh? I am awake. I am awake!',
|
||||
'Roll for initiative!',
|
||||
'I was an adventurer like you...',
|
||||
'Hello :) How are you?',
|
||||
]
|
||||
|
||||
definition(): SlashCommandBuilder
|
||||
{
|
||||
return new SlashCommandBuilder()
|
||||
.setName("hello")
|
||||
.setDescription("Displays a random response. (commonly used to test if the bot is online)")
|
||||
}
|
||||
async execute(interaction: CommandInteraction): Promise<void> {
|
||||
const random = Math.floor(Math.random() * HelloWorldCommand.RESPONSES.length);
|
||||
|
||||
await interaction.reply(HelloWorldCommand.RESPONSES[random]);
|
||||
return Promise.resolve();
|
||||
}
|
||||
private static RESPONSES: string[] = [
|
||||
'Hello :)',
|
||||
'zzzZ... ZzzzZ... huh? I am awake. I am awake!',
|
||||
'Roll for initiative!',
|
||||
'I was an adventurer like you...',
|
||||
'Hello :) How are you?',
|
||||
]
|
||||
|
||||
definition(): SlashCommandBuilder {
|
||||
return new SlashCommandBuilder()
|
||||
.setName("hello")
|
||||
.setDescription("Displays a random response. (commonly used to test if the bot is online)")
|
||||
}
|
||||
|
||||
async execute(interaction: CommandInteraction): Promise<void> {
|
||||
const random = Math.floor(Math.random() * HelloWorldCommand.RESPONSES.length);
|
||||
|
||||
await interaction.reply(HelloWorldCommand.RESPONSES[random]);
|
||||
return Promise.resolve();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue