Compare commits
4 Commits
30547e9d6a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e458823091 | |||
| 02fb3e5443 | |||
| 774ab87966 | |||
| 548d2b8eb1 |
@ -1,4 +1,4 @@
|
|||||||
# Logogram Discord Bot - A FFXIV Eureka Utility Bot | V1.2.0 - 2025/09/21
|
# Logogram Discord Bot - A FFXIV Eureka Utility Bot | V1.3.0 - 2025/07/24
|
||||||
A Discord bot for Eureka Logos Actions and their recipes.
|
A Discord bot for Eureka Logos Actions and their recipes.
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
@ -12,7 +12,7 @@ A Discord bot for Eureka Logos Actions and their recipes.
|
|||||||
- Examples: `-class=healer`, `-class=drg`
|
- Examples: `-class=healer`, `-class=drg`
|
||||||
- `-page=#`
|
- `-page=#`
|
||||||
- Use to view more search results
|
- Use to view more search results
|
||||||
- `preset` or `p`
|
- `preset` or `pr`
|
||||||
- Shows a pre-made list of actions for convenient viewing
|
- Shows a pre-made list of actions for convenient viewing
|
||||||
- `flowchart` or `flow` or `f`
|
- `flowchart` or `flow` or `f`
|
||||||
- Shows a simple flowchart for best actions
|
- Shows a simple flowchart for best actions
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
export const config = {
|
export const config = {
|
||||||
name: 'Logogram Bot', // Name of the bot
|
name: 'Logogram Bot', // Name of the bot
|
||||||
version: '1.2.0', // Version of the bot
|
version: '1.3.0', // 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
|
||||||
|
|||||||
5
deno.lock
generated
5
deno.lock
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "3",
|
"version": "4",
|
||||||
"remote": {
|
"remote": {
|
||||||
"https://deno.land/std@0.99.0/encoding/base64.ts": "eecae390f1f1d1cae6f6c6d732ede5276bf4b9cd29b1d281678c054dc5cc009e",
|
"https://deno.land/std@0.99.0/encoding/base64.ts": "eecae390f1f1d1cae6f6c6d732ede5276bf4b9cd29b1d281678c054dc5cc009e",
|
||||||
"https://deno.land/x/discordeno@12.0.1/mod.ts": "9c4187b459f479e23a77b0e7f0e24507a10729c7865b5c18113e79b1fbf0effa",
|
"https://deno.land/x/discordeno@12.0.1/mod.ts": "9c4187b459f479e23a77b0e7f0e24507a10729c7865b5c18113e79b1fbf0effa",
|
||||||
@ -536,6 +536,9 @@
|
|||||||
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/deps.ts": "4932522dd8d38cc322df6508d4f2e55e5fb0ec15e54fcdc81e2bf10051021608",
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/deps.ts": "4932522dd8d38cc322df6508d4f2e55e5fb0ec15e54fcdc81e2bf10051021608",
|
||||||
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/mod.ts": "d9c38a41a405cf5732c9233c2391a1d7f5a12d0e464aace6f8f596fabf5f21ba",
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/mod.ts": "d9c38a41a405cf5732c9233c2391a1d7f5a12d0e464aace6f8f596fabf5f21ba",
|
||||||
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/src/logger.ts": "f6ba6f7fe254fc3227a3ad48fd7c2c3aaaec8c350f0246fb3eeff075c21dc7e5",
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V1.1.1/src/logger.ts": "f6ba6f7fe254fc3227a3ad48fd7c2c3aaaec8c350f0246fb3eeff075c21dc7e5",
|
||||||
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V2.1.1/deps.ts": "3ab026026d146ca5e7160b16146d5665e45487a62749a7970f8e00c0c934874d",
|
||||||
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V2.1.1/mod.ts": "d9c38a41a405cf5732c9233c2391a1d7f5a12d0e464aace6f8f596fabf5f21ba",
|
||||||
|
"https://raw.githubusercontent.com/Burn-E99/Log4Deno/V2.1.1/src/logger.ts": "b3a39724d58102dfbcdcd640a829cbfe1f083065060f68003f9c8fd49fdd658a",
|
||||||
"https://unpkg.com/@evan/wasm@0.0.65/target/zlib/deno.js": "36cd3f1edd2f3a6d6fd4c2376f701c2748338c132703810d4866cfa52b5e7bf9"
|
"https://unpkg.com/@evan/wasm@0.0.65/target/zlib/deno.js": "36cd3f1edd2f3a6d6fd4c2376f701c2748338c132703810d4866cfa52b5e7bf9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
deps.ts
2
deps.ts
@ -2,4 +2,4 @@ export { cache, cacheHandlers, DiscordActivityTypes, editBotNickname, editBotSta
|
|||||||
|
|
||||||
export type { DiscordenoGuild, DiscordenoMessage, Embed } from 'https://deno.land/x/discordeno@12.0.1/mod.ts';
|
export type { DiscordenoGuild, DiscordenoMessage, 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/V2.1.1/mod.ts';
|
||||||
|
|||||||
@ -14,7 +14,7 @@ logogram_log="/var/log/logogram-bot.log"
|
|||||||
|
|
||||||
logogram_chdir="${logogram_root}"
|
logogram_chdir="${logogram_root}"
|
||||||
command="/usr/sbin/daemon"
|
command="/usr/sbin/daemon"
|
||||||
command_args="-f -R 5 -P ${pidfile} -o ${logogram_log} /usr/local/bin/deno run --allow-write=${logogram_write} --allow-net ${logogram_root}/mod.ts"
|
command_args="-f -R 5 -P ${pidfile} -o ${logogram_log} /usr/local/bin/deno run --allow-write=${logogram_write} --allow-net --allow-import ${logogram_root}/mod.ts"
|
||||||
|
|
||||||
load_rc_config logogram
|
load_rc_config logogram
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
PIDFile=/run/deno.pid
|
PIDFile=/run/deno.pid
|
||||||
ExecStart=/root/.deno/bin/deno run --allow-write=./logs/ --allow-net /var/dbots/logogram-bot/mod.ts
|
ExecStart=/root/.deno/bin/deno run --allow-write=./logs/ --allow-net --allow-import /var/dbots/logogram-bot/mod.ts
|
||||||
RestartSec=60
|
RestartSec=60
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|||||||
4
mod.ts
4
mod.ts
@ -207,8 +207,8 @@ startBot({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (command === 'preset' || command === 'p') {
|
} else if (command === 'preset' || command === 'pr') {
|
||||||
// l!preset or l!p
|
// l!preset or l!pr
|
||||||
// Returns logos actions stuff
|
// Returns logos actions stuff
|
||||||
const rawQuery = args.join(' ');
|
const rawQuery = args.join(' ');
|
||||||
const query = rawQuery.toLowerCase();
|
const query = rawQuery.toLowerCase();
|
||||||
|
|||||||
@ -4,61 +4,71 @@ const errorColor = 0xe71212;
|
|||||||
|
|
||||||
export const constantCmds = {
|
export const constantCmds = {
|
||||||
help: {
|
help: {
|
||||||
embeds: [{
|
embeds: [
|
||||||
title: `${config.name}'s Available Commands:`,
|
{
|
||||||
fields: [
|
title: `${config.name}'s Available Commands:`,
|
||||||
{
|
fields: [
|
||||||
name: `\`${config.prefix}?\``,
|
{
|
||||||
value: 'This command',
|
name: `\`${config.prefix}?\``,
|
||||||
inline: true,
|
value: 'This command',
|
||||||
},
|
inline: true,
|
||||||
{
|
},
|
||||||
name: `\`${config.prefix}info\``,
|
{
|
||||||
value: 'Prints some information and links relating to the bot',
|
name: `\`${config.prefix}info\``,
|
||||||
inline: true,
|
value: 'Prints some information and links relating to the bot',
|
||||||
},
|
inline: true,
|
||||||
{
|
},
|
||||||
name: `\`${config.prefix}version\``,
|
{
|
||||||
value: 'Prints the bots version',
|
name: `\`${config.prefix}version\``,
|
||||||
inline: true,
|
value: 'Prints the bots version',
|
||||||
},
|
inline: true,
|
||||||
{
|
},
|
||||||
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',
|
name: `\`${config.prefix}logograms [query]\` or \`${config.prefix}l [query]\``,
|
||||||
inline: true,
|
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,
|
||||||
{
|
},
|
||||||
name: `\`${config.prefix}preset [query]\` or \`${config.prefix}p [query]\``,
|
{
|
||||||
value: 'Sends information about the requested preset list',
|
name: `\`${config.prefix}preset [query]\` or \`${config.prefix}pr [query]\``,
|
||||||
inline: true,
|
value: 'Sends information about the requested preset list',
|
||||||
},
|
inline: true,
|
||||||
{
|
},
|
||||||
name: `\`${config.prefix}flowchart]\` or \`${config.prefix}f\``,
|
{
|
||||||
value: 'Shows a simple flowchart for best actions',
|
name: `\`${config.prefix}flowchart]\` or \`${config.prefix}f\``,
|
||||||
inline: true,
|
value: 'Shows a simple flowchart for best actions',
|
||||||
},
|
inline: true,
|
||||||
],
|
},
|
||||||
}],
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
embeds: [{
|
embeds: [
|
||||||
fields: [{
|
{
|
||||||
name: `${config.name}, a Discord bot for Eureka Logogram Actions.`,
|
fields: [
|
||||||
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.`,
|
{
|
||||||
}],
|
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.`,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
version: {
|
version: {
|
||||||
embeds: [{
|
embeds: [
|
||||||
title: `My current version is ${config.version}`,
|
{
|
||||||
}],
|
title: `My current version is ${config.version}`,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
logogramsNoQuery: {
|
logogramsNoQuery: {
|
||||||
embeds: [{
|
embeds: [
|
||||||
color: errorColor,
|
{
|
||||||
title: 'No query provided!',
|
color: errorColor,
|
||||||
description: `Please type something after the command, such as \`${config.prefix}logos wisdom\`.`,
|
title: 'No query provided!',
|
||||||
}],
|
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',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
deno run --allow-net --allow-write=./logs/ ./mod.ts
|
deno run --allow-write=./logs/ --allow-net --allow-import ./mod.ts
|
||||||
|
|||||||
Reference in New Issue
Block a user