pull/5/head
pineafan 4 years ago
parent 2c33b9f1a8
commit dd1155eb3d
No known key found for this signature in database
GPG Key ID: 0BC8D3DCC20E96FE

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = new SlashCommandBuilder()
.setName("help")
.setDescription("Shows help for commands")
const callback = (interaction: CommandInteraction) => {
interaction.reply("hel p");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "mod";
const description = "Perform mod actions";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("ban")
.setDescription("Bans a user from the server")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/ban]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("clear")
.setDescription("Clears a users messages in a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/clear]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("kick")
.setDescription("Clears a users messages in a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/kick]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "lock";
const description = "Quickly lock and unlock channels";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("add")
.setDescription("Adds a lock to a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/lock/add]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("remove")
.setDescription("Removes a lock from a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/lock/remove]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("purge")
.setDescription("Clears messages in a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/purge]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "slowmode";
const description = "Settings for slowmode in channels";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("clear")
.setDescription("Clears slowmode from a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/slowmode/clear]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("clear")
.setDescription("Sets slowmode in a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/slowmode/set]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("clear")
.setDescription("Toggles slowmode in a channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/slowmode/toggle]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("softban")
.setDescription("Softbans a user")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/softban]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("unban")
.setDescription("Unbans a user")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/unban]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setDescription("View the server as a specific member")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/viewas]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("warn")
.setDescription("Warns a user")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [mod/warn]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "nucleus";
const description = "Commands relating to Nucleus itself";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("ping")
.setDescription("Gets the bot's ping time")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [nucleus/ping]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("stats")
.setDescription("Gets the bot's statse")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [nucleus/stats]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("suggest")
.setDescription("Sends a suggestion to the developers")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [nucleus/suggest]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = new SlashCommandBuilder()
.setName("privacy")
.setDescription("Shows info about Nucleus' privacy options")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [privacy]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "role";
const description = "Change roles for users";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("add")
.setDescription("Adds a role to someone")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/add]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "all";
const description = "Role all users";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("add")
.setDescription("Adds a role to everyone")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/all/add]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("add")
.setDescription("removes a role from everyone")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/all/remove]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("toggle")
.setDescription("Adds a role to everyone if they don't have it, removes it if they do")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/all/toggle]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("info")
.setDescription("Gets info about a role")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/info]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("remove")
.setDescription("Removes a role from someone")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [role/remove]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "settings";
const description = "Change bot settings";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("all")
.setDescription("Shows a full UI of all settings")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/all]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("automation")
.setDescription("Shows all automation options")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/automation]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "log";
const description = "Settings for logging";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("channel")
.setDescription("Sets the log channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/log/channel]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("events")
.setDescription("Sets what events should be logged")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/log/events]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("ignore")
.setDescription("Sets which users, channels and roles should be ignored")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/log/ignore]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("ignored")
.setDescription("Gets the ignored users, channels and roles")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/log/ignored]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "announcements";
const description = "Settings for mod messages";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("channel")
.setDescription("Sets the channel for staff messages to go to")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/mod/channel]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("events")
.setDescription("Sets which events mods should be notified about")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/mod/events]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("tickets")
.setDescription("Shows settings for tickets")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/tickets]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "verify";
const description = "Settings for verification";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("channel")
.setDescription("Sets the verify channel")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/verify/channel]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("role")
.setDescription("Sets the role given after verifying")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [settings/verify/role]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = new SlashCommandBuilder()
.setName("tag")
.setDescription("Manage or get a tag")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [tag]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "ticket";
const description = "Manage modmail tickets";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("close")
.setDescription("Closes a ticket")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [ticket/close]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("create")
.setDescription("Creates a new modmail ticket")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [ticket/create]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("delete")
.setDescription("Deletes a ticket")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [ticket/delete]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,4 +0,0 @@
const name = "user";
const description = "Commands for user info";
export { name, description };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("about")
.setDescription("Shows info about a user")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [user/about]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,20 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("avatar")
.setDescription("Shows a users avatar")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [user/avatar]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = new SlashCommandBuilder()
.setName("verify")
.setDescription("Get verified in the server")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Command incomplete [verify]");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return true;
}
export { command };
export { callback };
export { check };

@ -12,7 +12,7 @@
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "node --experimental-json-modules dist/index.js", "start": "node --experimental-json-modules dist/index.js",
"dev": "tsc && node --experimental-json-modules dist/index.js" "dev": "rm -rf dist && tsc && node --experimental-json-modules dist/index.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

@ -1,19 +0,0 @@
import { CommandInteraction } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
const command = new SlashCommandBuilder()
.setName("examplecommand")
.setDescription("An example command")
const callback = (interaction: CommandInteraction) => {
interaction.reply("Hello, world!");
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
return interaction.user.id !== "123456789";
}
export { command };
export { callback };
export { check };

@ -1,11 +0,0 @@
{
"token": "your-token-here",
"developmentToken": "Nzc5Mzg4ODU2NTM2NTMwOTg0.X7f0bw.yzZg659UsLtHTfmeTsDXZa7O8K8",
"managementGuildID": "your-management-guild-id-here",
"developmentGuildID": "864185037078790195",
"enableDevelopment": true,
"owners": [
"317731855317336067",
"438733159748599813"
]
}

@ -1,6 +1,6 @@
import { HaikuClient } from 'jshaiku'; import { HaikuClient } from 'jshaiku';
import { Intents } from 'discord.js'; import { Intents } from 'discord.js';
import config from './config.json' assert {type: 'json'}; import config from './config/main.json' assert {type: 'json'};
const client = new HaikuClient({ const client = new HaikuClient({
intents: new Intents(32767).bitfield, // This is a way of specifying all intents w/o having to type them out intents: new Intents(32767).bitfield, // This is a way of specifying all intents w/o having to type them out

@ -4,11 +4,11 @@
"target": "es2020", "target": "es2020",
"sourceMap": true, "sourceMap": true,
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "Node", "outDir": "./dist",
"declaration": true,
"declarationMap": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"outDir": "./dist" "moduleResolution": "node",
}, },
"include": [ "include": ["src/**/*"]
"src/**/*"
, "old/commands", "COMMANDS/mod/lock", "COMMANDS/role", "COMMANDS/settings" ]
} }
Loading…
Cancel
Save