-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f50588a
commit 0a35b0f
Showing
22 changed files
with
6,140 additions
and
829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
DISCORD_TOKEN= | ||
# Your bot's application ID (can be found on Discord or on the Discord Developer Portal) | ||
CLIENT_ID= | ||
|
||
# Your bot token | ||
DISCORD_TOKEN= | ||
|
||
GUILD_ID= | ||
# Only put an ID here if you want commands to be registered in one server. | ||
|
||
CLIENT_ID= | ||
# Your bot's application ID (can be found on Discord or on the Discord Developer Portal) | ||
GUILD_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/eslintrc.json", | ||
"extends": ["neon/common", "neon/node", "neon/typescript", "neon/prettier"], | ||
"ignorePatterns": ["**/dist/*"], | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"] | ||
}, | ||
"root": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
dist/ | ||
node_modules/ | ||
.env | ||
# dependencies | ||
node_modules | ||
|
||
# env files | ||
.env | ||
|
||
# production | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# auto generated | ||
LICENSE | ||
|
||
# dependencies | ||
node_modules | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock | ||
|
||
# production | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc.json", | ||
"arrowParens": "avoid", | ||
"endOfLine": "lf", | ||
"printWidth": 120, | ||
"quoteProps": "as-needed" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
{ | ||
// Place your sample-bot workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | ||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | ||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | ||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
// Example: | ||
// "Print to console": { | ||
// "scope": "javascript,typescript", | ||
// "prefix": "log", | ||
// "body": [ | ||
// "console.log('$1');", | ||
// "$2" | ||
// ], | ||
// "description": "Log output to console" | ||
// } | ||
"Slash command template": { | ||
"prefix": "!slash", | ||
"body": [ | ||
"import { ChatInputCommandInteraction, inlineCode } from 'discord.js';", | ||
"import { CommandClass } from '../../structures/command.js';", | ||
"", | ||
"export default new CommandClass({", | ||
" data: {", | ||
" name: 'ping',", | ||
" description: 'Pong!',", | ||
" },", | ||
" opt: {", | ||
" userPermissions: ['SendMessages'],", | ||
" botPermissions: ['SendMessages'],", | ||
" category: 'General',", | ||
" cooldown: 5,", | ||
" visible: true,", | ||
" guildOnly: false,", | ||
" },", | ||
" async execute(interaction: ChatInputCommandInteraction<'cached'>) {", | ||
" const msg = await interaction.reply({", | ||
" content: 'Pinging...',", | ||
" fetchReply: true", | ||
" });", | ||
" setTimeout(() => {", | ||
" const ping = msg.createdTimestamp - interaction.createdTimestamp;", | ||
" interaction.editReply({", | ||
" content: `Pong! Latency is ${inlineCode(`${ping}ms`)}. \\nAPI Latency is ${inlineCode(`${interaction.client.ws.ping}ms`)}`", | ||
" });", | ||
" }, 3000);", | ||
" },", | ||
"})" | ||
], | ||
"description": "Slash command template" | ||
}, | ||
"Context menu template": { | ||
"prefix": "!context", | ||
"body": [ | ||
"import { ApplicationCommandType, MessageContextMenuCommandInteraction, hyperlink } from 'discord.js';", | ||
"import { CommandClass } from '../../structures/command.js';", | ||
"", | ||
"export default new CommandClass({", | ||
" data: {", | ||
" name: 'echo',", | ||
" type: ApplicationCommandType.Message,", | ||
" },", | ||
" opt: {", | ||
" userPermissions: ['SendMessages'],", | ||
" botPermissions: ['SendMessages'],", | ||
" category: 'Context',", | ||
" cooldown: 5,", | ||
" visible: true,", | ||
" guildOnly: false,", | ||
" },", | ||
" async execute(interaction: MessageContextMenuCommandInteraction<'cached'>) {", | ||
" const message = await interaction.targetMessage.fetch();", | ||
" if (!message?.content) return interaction.reply({", | ||
" content: hyperlink('No content was found in this message!', message.url),", | ||
" ephemeral: true", | ||
" })", | ||
" else return interaction.reply({", | ||
" content: hyperlink(message.content, message.url)", | ||
" });", | ||
" }", | ||
"});", | ||
"" | ||
], | ||
"description": "Context menu template" | ||
} | ||
} | ||
// Place your sample-bot workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | ||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | ||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | ||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
// Example: | ||
// "Print to console": { | ||
// "scope": "javascript,typescript", | ||
// "prefix": "log", | ||
// "body": [ | ||
// "console.log('$1');", | ||
// "$2" | ||
// ], | ||
// "description": "Log output to console" | ||
// } | ||
"Slash command template": { | ||
"prefix": "!slash", | ||
"body": [ | ||
"import { ChatInputCommandInteraction, inlineCode } from 'discord.js';", | ||
"import { CommandClass } from '../../structures/command.js';", | ||
"", | ||
"export default new CommandClass({", | ||
" data: {", | ||
" name: 'ping',", | ||
" description: 'Pong!',", | ||
" },", | ||
" opt: {", | ||
" userPermissions: ['SendMessages'],", | ||
" botPermissions: ['SendMessages'],", | ||
" category: 'General',", | ||
" cooldown: 5,", | ||
" visible: true,", | ||
" guildOnly: false,", | ||
" },", | ||
" async execute(interaction: ChatInputCommandInteraction<'cached'>) {", | ||
" const msg = await interaction.reply({", | ||
" content: 'Pinging...',", | ||
" fetchReply: true", | ||
" });", | ||
" setTimeout(() => {", | ||
" const ping = msg.createdTimestamp - interaction.createdTimestamp;", | ||
" interaction.editReply({", | ||
" content: `Pong! Latency is ${inlineCode(`${ping}ms`)}. \\nAPI Latency is ${inlineCode(`${interaction.client.ws.ping}ms`)}`", | ||
" });", | ||
" }, 3000);", | ||
" },", | ||
"})", | ||
], | ||
"description": "Slash command template", | ||
}, | ||
"Context menu template": { | ||
"prefix": "!context", | ||
"body": [ | ||
"import { ApplicationCommandType, MessageContextMenuCommandInteraction, hyperlink } from 'discord.js';", | ||
"import { CommandClass } from '../../structures/command.js';", | ||
"", | ||
"export default new CommandClass({", | ||
" data: {", | ||
" name: 'echo',", | ||
" type: ApplicationCommandType.Message,", | ||
" },", | ||
" opt: {", | ||
" userPermissions: ['SendMessages'],", | ||
" botPermissions: ['SendMessages'],", | ||
" category: 'Context',", | ||
" cooldown: 5,", | ||
" visible: true,", | ||
" guildOnly: false,", | ||
" },", | ||
" async execute(interaction: MessageContextMenuCommandInteraction<'cached'>) {", | ||
" const message = await interaction.targetMessage.fetch();", | ||
" if (!message?.content) return interaction.reply({", | ||
" content: hyperlink('No content was found in this message!', message.url),", | ||
" ephemeral: true", | ||
" })", | ||
" else return interaction.reply({", | ||
" content: hyperlink(message.content, message.url)", | ||
" });", | ||
" }", | ||
"});", | ||
"", | ||
], | ||
"description": "Context menu template", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.