Logo Lanfrica

MFOF7310/neo-bot

Type de record:

software
Créateur:
MFO
HĂ´te:
Feature: AfriQuizA bilingual (FR/EN) Africa-themed trivia game for Discord communities. 🦅 NEO Bot — AfriQuiz A bilingual (FR/EN) Africa-themed trivia bot for Discord, built with Discord.js v14. Un bot Discord de quiz bilingue (FR/EN) sur l'Afrique, construit avec Discord.js v14. --- 🇬🇧 English Features - `/quiz [categorie]` — random question, 4 answer buttons, 30-second timer, auto-expire - `/quiz-daily` — one bonus question per user per day, double points - `/quiz-streak` — current streak, personal best, server rank - `/quiz-leaderboard` — server top 10 as a generated image card (dark/gold style) - `/quiz-stats` — games played, correct answers, accuracy %, best category - `/neo-lang set fr|en` — set the server language (admins only, default: FR) - `/play` — launch the AfriQuiz Activity right from a text channel (LAUNCH_ACTIVITY callback, no voice channel needed) Points: Easy 5 • Medium 10 • Hard 20 • Daily ×2 • Answer in under 5 s → +3 speed bonus Categories: 🌍 Geography • 📜 History • 🗣️ Languages • 🎵 Music • 🏆 Sports • 🌱 Nature The question bank ships with 200 fully bilingual questions (70 easy, 92 medium, 38 hard), including Mali specials (Mansa Musa, Timbuktu, Bambara…), West Africa, pan-African history, Afrobeats and AFCON. Setup ```bash git clone github.com cd neo-bot npm install cp config.env.example .env # fill in DISCORD_TOKEN + CLIENT_ID npm run seed # only if data/afriquiz.sqlite is missing npm start ``` Discord Developer Portal 1. Create an application at <> 2. Bot tab → copy the token into `.env` (`DISCORD_TOKEN`) 3. General Information → copy the Application ID (`CLIENT_ID`) 4. Invite URL (OAuth2 → URL Generator, scopes `bot` + `applications.commands`, permission `Send Messages`): ``` discord.com ``` Commands are registered automatically at boot. Set `GUILD_ID` in `.env` during development for instant registration; leave it empty for global registration (can take up to 1 h to p …