diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..eb6c2af --- /dev/null +++ b/README.en.md @@ -0,0 +1,80 @@ +
+ +MicroCoaster sells 3D-printed miniature roller coasters. Every product ships with a warranty code, and all after-sales support happens on Discord. This bot is the link: it checks the codes, opens the tickets, routes them to the right team and keeps a record of everything. + +
+
+**Warranties, in two steps.** The customer activates their code themselves, but the warranty only starts after a human approval. That pause leaves time to look at a doubtful order before committing to twelve months of cover.
+
+
+
+The warranty role survives leaving the server: on every arrival, the bot checks `user_roles_backup` and restores what was owed. An integrity check also runs at startup, to catch up on roles lost during an outage.
+
+**Ticketing, in four categories.** Technical, product, sales, recruitment, each notifying its own team. Every ticket gets an incrementing number, a dedicated channel, an adjustable priority, and a transcript archived on close.
+
+
+
+
+
+
+
+
+
+
+
+
+
+```bash
+git clone https://github.com/Microcoaster/Microcoaster-bot.git
+cd Microcoaster-bot
+npm install
+cp .env.example .env
+```
+
+**Database.** MySQL 8.0 or above. Create the database and the user, then let the bot create its tables on first boot.
+
+```sql
+CREATE DATABASE microcoaster_bot CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
+CREATE USER 'bot_user'@'localhost' IDENTIFIED BY 'un_mot_de_passe_solide';
+GRANT ALL PRIVILEGES ON microcoaster_bot.* TO 'bot_user'@'localhost';
+FLUSH PRIVILEGES;
+```
+
+**Environment variables.**
+
+
+
+**Getting it running.**
+
+```bash
+npm start # the bot starts and registers its commands
+```
+
+Then on the Discord server, in this order.
+
+
+
+
+
+Three things to know before touching the repository.
+
+- `config/config.json` holds Discord server IDs, specific to one installation. Reconfigure with `/config` rather than reusing them as they are.
+- The commands are registered globally at startup. Discord can take up to an hour to propagate them.
+- The scheduled jobs, reminders and the daily cleanup, follow the host machine's timezone.
+
+The modular architecture builds on a Discord.js template under the MIT licence. The business logic, warranties, ticketing and role restoration, is specific to MicroCoaster.
+
+The contribution cycle is the organisation's: an issue describes the work, a branch starts from `develop`, a pull request comes back onto it and goes through review.
+
+---
+
+MicroCoaster · Authors: Cybertrist, Yamakajump
diff --git a/README.md b/README.md
index b76479a..d6cc890 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
diff --git a/docs/en/banniere.png b/docs/en/banniere.png
new file mode 100644
index 0000000..c6034ab
Binary files /dev/null and b/docs/en/banniere.png differ
diff --git a/docs/en/schemas/arborescence.png b/docs/en/schemas/arborescence.png
new file mode 100644
index 0000000..b406224
Binary files /dev/null and b/docs/en/schemas/arborescence.png differ
diff --git a/docs/en/schemas/commandes.png b/docs/en/schemas/commandes.png
new file mode 100644
index 0000000..d8809ef
Binary files /dev/null and b/docs/en/schemas/commandes.png differ
diff --git a/docs/en/schemas/donnees.png b/docs/en/schemas/donnees.png
new file mode 100644
index 0000000..544daaf
Binary files /dev/null and b/docs/en/schemas/donnees.png differ
diff --git a/docs/en/schemas/environnement.png b/docs/en/schemas/environnement.png
new file mode 100644
index 0000000..5065a8a
Binary files /dev/null and b/docs/en/schemas/environnement.png differ
diff --git a/docs/en/schemas/garantie.png b/docs/en/schemas/garantie.png
new file mode 100644
index 0000000..d11db41
Binary files /dev/null and b/docs/en/schemas/garantie.png differ
diff --git a/docs/en/schemas/mise-en-route.png b/docs/en/schemas/mise-en-route.png
new file mode 100644
index 0000000..c81bcf9
Binary files /dev/null and b/docs/en/schemas/mise-en-route.png differ
diff --git a/docs/en/sections/s01.png b/docs/en/sections/s01.png
new file mode 100644
index 0000000..4d6dfb9
Binary files /dev/null and b/docs/en/sections/s01.png differ
diff --git a/docs/en/sections/s02.png b/docs/en/sections/s02.png
new file mode 100644
index 0000000..e3f3cd6
Binary files /dev/null and b/docs/en/sections/s02.png differ
diff --git a/docs/en/sections/s03.png b/docs/en/sections/s03.png
new file mode 100644
index 0000000..2722bc8
Binary files /dev/null and b/docs/en/sections/s03.png differ
diff --git a/docs/en/sections/s04.png b/docs/en/sections/s04.png
new file mode 100644
index 0000000..b728f2e
Binary files /dev/null and b/docs/en/sections/s04.png differ
diff --git a/docs/en/sections/s05.png b/docs/en/sections/s05.png
new file mode 100644
index 0000000..27442cc
Binary files /dev/null and b/docs/en/sections/s05.png differ
diff --git a/docs/langues/en-off.png b/docs/langues/en-off.png
new file mode 100644
index 0000000..77ea9ec
Binary files /dev/null and b/docs/langues/en-off.png differ
diff --git a/docs/langues/en-on.png b/docs/langues/en-on.png
new file mode 100644
index 0000000..c9dbf28
Binary files /dev/null and b/docs/langues/en-on.png differ
diff --git a/docs/langues/fr-off.png b/docs/langues/fr-off.png
new file mode 100644
index 0000000..41f4335
Binary files /dev/null and b/docs/langues/fr-off.png differ
diff --git a/docs/langues/fr-on.png b/docs/langues/fr-on.png
new file mode 100644
index 0000000..4e1cb47
Binary files /dev/null and b/docs/langues/fr-on.png differ