deno fmt
This commit is contained in:
parent
0bf818288a
commit
5b87cfda75
|
@ -1,30 +1,30 @@
|
||||||
export const config = {
|
export const config = {
|
||||||
'name': 'Logogram Bot', // Name of the bot
|
'name': 'Logogram Bot', // Name of the bot
|
||||||
'version': '1.1.6', // Version of the bot
|
'version': '1.1.6', // Version of the bot
|
||||||
'token': 'the_bot_token', // Discord API Token for this bot
|
'token': 'the_bot_token', // Discord API Token for this bot
|
||||||
'localToken': 'local_testing_token', // Discord API Token for a secondary OPTIONAL testing bot, THIS MUST BE DIFFERENT FROM "token"
|
'localToken': 'local_testing_token', // Discord API Token for a secondary OPTIONAL testing bot, THIS MUST BE DIFFERENT FROM "token"
|
||||||
'prefix': 'l!', // Prefix for all commands
|
'prefix': 'l!', // Prefix for all commands
|
||||||
'logChannel': 0n, // Discord channel ID where the bot should put startup messages and other error messages needed
|
'logChannel': 0n, // Discord channel ID where the bot should put startup messages and other error messages needed
|
||||||
'reportChannel': 0n, // Discord channel ID where reports will be sent when using the built-in report command
|
'reportChannel': 0n, // Discord channel ID where reports will be sent when using the built-in report command
|
||||||
'devServer': 0n, // Discord guild ID where testing of indev features/commands will be handled, used in conjunction with the DEVMODE bool in mod.ts
|
'devServer': 0n, // Discord guild ID where testing of indev features/commands will be handled, used in conjunction with the DEVMODE bool in mod.ts
|
||||||
'owner': 0n, // Discord user ID of the bot admin
|
'owner': 0n, // Discord user ID of the bot admin
|
||||||
'imageUrl': '', // Base URL for logos action images
|
'imageUrl': '', // Base URL for logos action images
|
||||||
'resultsPerPage': 5, // Results to show on each page
|
'resultsPerPage': 5, // Results to show on each page
|
||||||
'mneme': { // Emojis for the mnemes
|
'mneme': { // Emojis for the mnemes
|
||||||
'blue': '',
|
'blue': '',
|
||||||
'cyan': '',
|
'cyan': '',
|
||||||
'green': '',
|
'green': '',
|
||||||
'purple': '',
|
'purple': '',
|
||||||
'red': '',
|
'red': '',
|
||||||
'yellow': '',
|
'yellow': '',
|
||||||
},
|
},
|
||||||
'jobType': { // Emojis for job type icons
|
'jobType': { // Emojis for job type icons
|
||||||
'tank': '',
|
'tank': '',
|
||||||
'healer': '',
|
'healer': '',
|
||||||
'melee': '',
|
'melee': '',
|
||||||
'ranged': '',
|
'ranged': '',
|
||||||
'magic': '',
|
'magic': '',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|
25
deno.json
25
deno.json
|
@ -1,14 +1,11 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
|
||||||
"lib": ["deno.worker"],
|
"lib": ["deno.worker"],
|
||||||
"strict": true
|
"strict": true
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"files": {
|
"include": ["src/", "db/", "mod.ts", "deps.ts", "config.ts", "config.example.ts"],
|
||||||
"include": ["src/", "db/", "mod.ts", "deps.ts", "config.ts", "config.example.ts"],
|
"exclude": [],
|
||||||
"exclude": []
|
|
||||||
},
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"tags": ["recommended"],
|
"tags": ["recommended"],
|
||||||
"include": ["ban-untagged-todo"],
|
"include": ["ban-untagged-todo"],
|
||||||
|
@ -16,16 +13,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fmt": {
|
"fmt": {
|
||||||
"files": {
|
"include": ["src/", "db/", "mod.ts", "deps.ts", "config.ts", "config.example.ts"],
|
||||||
"include": ["src/", "db/", "mod.ts", "deps.ts", "config.ts", "config.example.ts"],
|
"exclude": [],
|
||||||
"exclude": []
|
"useTabs": false,
|
||||||
},
|
"lineWidth": 250,
|
||||||
"options": {
|
"indentWidth": 2,
|
||||||
"useTabs": true,
|
"singleQuote": true,
|
||||||
"lineWidth": 250,
|
"proseWrap": "preserve"
|
||||||
"indentWidth": 2,
|
|
||||||
"singleQuote": true,
|
|
||||||
"proseWrap": "preserve"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
11
deps.ts
11
deps.ts
|
@ -1,12 +1,5 @@
|
||||||
export {
|
export { cache, cacheHandlers, DiscordActivityTypes, editBotNickname, editBotStatus, Intents, sendMessage, startBot } from 'https://deno.land/x/discordeno@12.0.1/mod.ts';
|
||||||
startBot, editBotStatus, editBotNickname,
|
|
||||||
sendMessage,
|
|
||||||
Intents, DiscordActivityTypes,
|
|
||||||
cache, cacheHandlers
|
|
||||||
} from "https://deno.land/x/discordeno@12.0.1/mod.ts";
|
|
||||||
|
|
||||||
export type {
|
export type { DiscordenoGuild, DiscordenoMessage, Embed } from 'https://deno.land/x/discordeno@12.0.1/mod.ts';
|
||||||
DiscordenoMessage, DiscordenoGuild, Embed
|
|
||||||
} from "https://deno.land/x/discordeno@12.0.1/mod.ts";
|
|
||||||
|
|
||||||
export { initLog, log, LogTypes as LT } from 'https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/mod.ts';
|
export { initLog, log, LogTypes as LT } from 'https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/mod.ts';
|
|
@ -3,62 +3,62 @@ import config from '../config.ts';
|
||||||
const errorColor = 0xe71212;
|
const errorColor = 0xe71212;
|
||||||
|
|
||||||
export const constantCmds = {
|
export const constantCmds = {
|
||||||
help: {
|
help: {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: `${config.name}'s Available Commands:`,
|
title: `${config.name}'s Available Commands:`,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}?\``,
|
name: `\`${config.prefix}?\``,
|
||||||
value: 'This command',
|
value: 'This command',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}info\``,
|
name: `\`${config.prefix}info\``,
|
||||||
value: 'Prints some information and links relating to the bot',
|
value: 'Prints some information and links relating to the bot',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}version\``,
|
name: `\`${config.prefix}version\``,
|
||||||
value: 'Prints the bots version',
|
value: 'Prints the bots version',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}logograms [query]\` or \`${config.prefix}l [query]\``,
|
name: `\`${config.prefix}logograms [query]\` or \`${config.prefix}l [query]\``,
|
||||||
value: 'Sends information about the requested logogram, or logograms matching the query\nCan use `-class=abbr` to further filter the results, or `-page=#` to view more results',
|
value: 'Sends information about the requested logogram, or logograms matching the query\nCan use `-class=abbr` to further filter the results, or `-page=#` to view more results',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}preset [query]\` or \`${config.prefix}p [query]\``,
|
name: `\`${config.prefix}preset [query]\` or \`${config.prefix}p [query]\``,
|
||||||
value: 'Sends information about the requested preset list',
|
value: 'Sends information about the requested preset list',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: `\`${config.prefix}flowchart]\` or \`${config.prefix}f\``,
|
name: `\`${config.prefix}flowchart]\` or \`${config.prefix}f\``,
|
||||||
value: 'Shows a simple flowchart for best actions',
|
value: 'Shows a simple flowchart for best actions',
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
fields: [{
|
fields: [{
|
||||||
name: `${config.name}, a Discord bot for Eureka Logogram Actions.`,
|
name: `${config.name}, a Discord bot for Eureka Logogram Actions.`,
|
||||||
value: `${config.name} is developed by Ean AKA Burn_E99.\n\nFINAL FANTASY XIV SQUARE ENIX CO., LTD. FINAL FANTASY is a registered trademark of Square Enix Holdings Co., Ltd. All material used under license.`,
|
value: `${config.name} is developed by Ean AKA Burn_E99.\n\nFINAL FANTASY XIV SQUARE ENIX CO., LTD. FINAL FANTASY is a registered trademark of Square Enix Holdings Co., Ltd. All material used under license.`,
|
||||||
}],
|
}],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
version: {
|
version: {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: `My current version is ${config.version}`,
|
title: `My current version is ${config.version}`,
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
logogramsNoQuery: {
|
logogramsNoQuery: {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
color: errorColor,
|
color: errorColor,
|
||||||
title: 'No query provided!',
|
title: 'No query provided!',
|
||||||
description: `Please type something after the command, such as \`${config.prefix}logos wisdom\`.`,
|
description: `Please type something after the command, such as \`${config.prefix}logos wisdom\`.`,
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
flowchart: 'https://ffxiv.eanm.dev/eureka/Simple-Logos-Flowchart.png',
|
flowchart: 'https://ffxiv.eanm.dev/eureka/Simple-Logos-Flowchart.png',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue