Compare commits
2 commits
10fa611740
...
f892613bf6
Author | SHA1 | Date | |
---|---|---|---|
f892613bf6 | |||
2c80f7ae11 |
4 changed files with 22 additions and 39 deletions
|
@ -1,12 +1,10 @@
|
|||
const isDev = process.env.NODE_ENV !== "production";
|
||||
|
||||
/** Load the app */
|
||||
const start_app = () => {
|
||||
import("./load").then((l) => l.run(isDev).catch((error) => console.error(error)));
|
||||
import("./load").then((l) => l.run().catch((error) => console.error(error)));
|
||||
};
|
||||
|
||||
// Load .env if not in prod
|
||||
if (isDev) {
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
import("dotenv").then((c) => {
|
||||
|
|
|
@ -7,18 +7,13 @@ import loadClient, { quit } from "./utils/client";
|
|||
import { logStart } from "./utils/misc";
|
||||
|
||||
/** Run the bot */
|
||||
export const run = async (isDev: boolean) => {
|
||||
export const run = async () => {
|
||||
console.log("Starting Botanique...");
|
||||
|
||||
// Client Discord.JS
|
||||
const client_name = "Client";
|
||||
await loadClient()
|
||||
.then(async (client) => {
|
||||
if (isDev) {
|
||||
// Attach debugging listeners
|
||||
client.on("debug", console.log).on("warn", console.warn);
|
||||
}
|
||||
|
||||
// Events Discord.JS and Player
|
||||
const events_name = "Events";
|
||||
await loadEvents(client)
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
{
|
||||
"e_interacreate_no_command": "Sorry, the command probably no longer exists...",
|
||||
"e_interacreate_no_modal": "Sorry, the template no longer exists...",
|
||||
"e_interacreate_no_modal": "Sorry, the model no longer exists...",
|
||||
"e_interacreate_no_button": "Sorry, the button no longer exists...",
|
||||
"e_interacreate_no_autocomplete": "Sorry, no autocomplete is available for this command...",
|
||||
|
||||
"c_ping_name": "Ping",
|
||||
"c_ping_desc": "Pong!",
|
||||
"c_ping1": "Roundtrip latency",
|
||||
"c_ping2": "Web socket heartbeat",
|
||||
"c_ping2": "Websocket heartbeat",
|
||||
|
||||
"c_help_name": "Help",
|
||||
"c_help_desc": "Information about commands",
|
||||
"c_help_desc": "Informations about commands",
|
||||
"c_help_opt1_name": "command",
|
||||
"c_help_opt1_desc": "Command wanted in depth.",
|
||||
"c_help1": "List of categories and associated commands",
|
||||
|
@ -24,11 +23,11 @@
|
|||
"c_reminder_sub1_name": "new",
|
||||
"c_reminder_sub1_desc": "Sets up a reminder",
|
||||
"c_reminder_sub1_opt1_name": "time",
|
||||
"c_reminder_sub1_opt1_desc": "Desired time before the reminder, append an @ to activate the mention or a p to send in a DM",
|
||||
"c_reminder_sub1_opt1_desc": "Desired time before the reminder, append an @ to activate the mention or a p to send in DM",
|
||||
"c_reminder_sub1_opt2_name": "message",
|
||||
"c_reminder_sub1_opt2_desc": "Reminder message",
|
||||
"c_reminder_sub2_name": "list",
|
||||
"c_reminder_sub2_desc": "Displays the list of reminders for a user",
|
||||
"c_reminder_sub2_desc": "Displays the list of reminders of a user",
|
||||
"c_reminder_sub2_opt1_name": "user",
|
||||
"c_reminder_sub2_opt1_desc": "Displays the list of this user",
|
||||
"c_reminder_sub2_opt2_name": "page",
|
||||
|
@ -39,7 +38,7 @@
|
|||
"c_reminder_sub3_opt1_desc": "Reminder to be deleted",
|
||||
"c_reminder1": "A reminder has been set up for in",
|
||||
"c_reminder2": "The ID entered is not valid.",
|
||||
"c_reminder3": "Reminder not found, not in the right guild, or not belonging to you.",
|
||||
"c_reminder3": "Reminder not found, not on the right guild or not belonging to you.",
|
||||
"c_reminder4": "Unknown user.",
|
||||
"c_reminder5": "Reminders of",
|
||||
"c_reminder6": "Page",
|
||||
|
@ -59,15 +58,13 @@
|
|||
"c_play_desc": "Plays a song/playlist, no query displays the now playing song",
|
||||
"c_play_opt1_name": "query",
|
||||
"c_play_opt1_desc": "What you want to listen to",
|
||||
"c_play1": "You're not on any vocal channels.",
|
||||
"c_play1": "You're not in any vocal channel.",
|
||||
"c_play2": "You are in the wrong voice channel, I am in",
|
||||
"c_play3": "Unable to join the voice channel.",
|
||||
"c_play4": "not found",
|
||||
"c_play5": "added to the queue",
|
||||
"c_play6": "The bot is not playing anything right now.",
|
||||
"c_play7": "Currently playing",
|
||||
"c_play8": "Asked by",
|
||||
"c_play9": "No results were found",
|
||||
|
||||
"c_stop_name": "stop",
|
||||
"c_stop_desc": "Stop the music",
|
||||
|
@ -114,17 +111,13 @@
|
|||
|
||||
"c_lyrics_name": "lyrics",
|
||||
"c_lyrics_desc": "Displays the lyrics of a song",
|
||||
"c_lyrics_sub1_name": "normal",
|
||||
"c_lyrics_sub1_desc": "Lyrics search",
|
||||
"c_lyrics_sub2_name": "romanized",
|
||||
"c_lyrics_sub2_desc": "Search for romanized lyrics (e.g., hangul → Latin)",
|
||||
"c_lyrics_sub3_name": "synced",
|
||||
"c_lyrics_sub3_desc": "Synchronized lyrics search (updates in live)",
|
||||
"c_lyrics_opt1_name": "song",
|
||||
"c_lyrics_opt1_desc": "Wanted song",
|
||||
"c_lyrics1": "The bot is not playing anything at the moment, and no songs are specified.",
|
||||
"c_lyrics1": "The bot is not playing anything at the moment and no songs are specified.",
|
||||
"c_lyrics2": "Unable to find the lyrics for",
|
||||
"c_lyrics3": "Unable to find synchronized lyrics for",
|
||||
"c_lyrics3": "Impossible to find synchronized lyrics for",
|
||||
"c_lyrics4": "It's karaoke time!",
|
||||
|
||||
"c_repeat_name": "repeat",
|
||||
|
@ -142,8 +135,5 @@
|
|||
"c_repeat3": "Repeating the queue",
|
||||
"c_repeat4": "Automatic playback",
|
||||
"c_repeat5": "Repeating the song",
|
||||
"c_repeat6": "enabled",
|
||||
|
||||
"e_trackstart1": "Asked by",
|
||||
"e_trackstart2": "Duration :"
|
||||
"c_repeat6": "enabled"
|
||||
}
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
"e_interacreate_no_command": "Désolé, la commande n'existe plus...",
|
||||
"e_interacreate_no_modal": "Désolé, le modèle n'existe plus...",
|
||||
"e_interacreate_no_button": "Désolé, le bouton n'existe plus...",
|
||||
"e_interacreate_no_autocomplete": "Désolé, pas d'autocomplétion n'existe pour cette commande...",
|
||||
"e_interacreate_no_autocomplete": "Désolé, pas d'autocomplétion existe pour cette commande...",
|
||||
|
||||
"c_ping_name": "Ping",
|
||||
"c_ping_desc": "Pong!",
|
||||
"c_ping1": "Latence totale",
|
||||
"c_ping2": "Latence du Web socket",
|
||||
"c_ping2": "Latence du Websocket",
|
||||
|
||||
"c_help_name": "Aide",
|
||||
"c_help_desc": "Informations sur les commandes",
|
||||
"c_help_opt1_name": "commande",
|
||||
"c_help_opt1_desc": "Commande voulue en détail",
|
||||
"c_help_opt1_desc": "Commande voulu en détail",
|
||||
"c_help1": "Liste des catégories et des commandes associées",
|
||||
"c_help2": "`/help <commande>` pour obtenir plus d'informations sur une commande.",
|
||||
"c_help3": "Impossible de trouver :",
|
||||
|
@ -22,11 +22,11 @@
|
|||
"c_reminder_name": "rappel",
|
||||
"c_reminder_desc": "Commande relative aux rappels",
|
||||
"c_reminder_sub1_name": "nouveau",
|
||||
"c_reminder_sub1_desc": "Mets en place un rappel",
|
||||
"c_reminder_sub1_desc": "Met en place un rappel",
|
||||
"c_reminder_sub1_opt1_name": "temps",
|
||||
"c_reminder_sub1_opt1_desc": "Temps désiré avant le rappel, accolez un @ pour activer la mention ou un p pour envoyer en DM",
|
||||
"c_reminder_sub1_opt2_name": "message",
|
||||
"c_reminder_sub1_opt2_desc": "Message de rappel",
|
||||
"c_reminder_sub1_opt2_desc": "Message du rappel",
|
||||
"c_reminder_sub2_name": "liste",
|
||||
"c_reminder_sub2_desc": "Affiche la liste des rappels d'un utilisateur",
|
||||
"c_reminder_sub2_opt1_name": "utilisateur",
|
||||
|
@ -91,7 +91,7 @@
|
|||
"c_queue_sub3_name": "retire",
|
||||
"c_queue_sub3_desc": "Retire une chanson de la file d'attente",
|
||||
"c_queue_sub3_opt1_name": "id",
|
||||
"c_queue_sub3_opt1_desc": "ID de la chanson à retirer",
|
||||
"c_queue_sub3_opt1_desc": "ID de la chanson a retirer",
|
||||
"c_queue1": "File d'attente",
|
||||
"c_queue2": "La liste est vide.",
|
||||
"c_queue3": "Liste d'attente mélangée",
|
||||
|
@ -117,9 +117,9 @@
|
|||
"c_lyrics_sub1_name": "normal",
|
||||
"c_lyrics_sub1_desc": "Recherche de paroles",
|
||||
"c_lyrics_sub2_name": "romanized",
|
||||
"c_lyrics_sub2_desc": "Recherche de paroles romanisées (ex: hangul → latin)",
|
||||
"c_lyrics_sub2_desc": "Recherche de paroles romanisée (ex: hangul -> latin)",
|
||||
"c_lyrics_sub3_name": "synced",
|
||||
"c_lyrics_sub3_desc": "Recherche de paroles synchronisées (se mettent à jour avec la chanson en direct)",
|
||||
"c_lyrics_sub3_desc": "Recherche de paroles synchronisée (se met à jour avec la chanson en direct)",
|
||||
"c_lyrics_opt1_name": "chanson",
|
||||
"c_lyrics_opt1_desc": "Chanson recherchée",
|
||||
"c_lyrics1": "Le bot ne joue rien en ce moment et aucune chanson n'est renseignée.",
|
||||
|
@ -138,7 +138,7 @@
|
|||
"c_repeat_sub4_name": "autoplay",
|
||||
"c_repeat_sub4_desc": "Active la lecture automatique",
|
||||
"c_repeat1": "Le bot ne joue rien en ce moment.",
|
||||
"c_repeat2": "Répétition désactivée",
|
||||
"c_repeat2": "Répétition désactivé",
|
||||
"c_repeat3": "Répétition de la file d'attente",
|
||||
"c_repeat4": "Lecture automatique",
|
||||
"c_repeat5": "Répétition de la chanson",
|
||||
|
|
Loading…
Reference in a new issue