How luzzy12/fivem-ck-bot works
This is a Discord bot for processing character-kill (CK) requests. In the configured channel, a user submits a Discord ID; the bot looks up the player and presents a confirmation button. Clicking it triggers deletion across player-related tables, followed by an ephemeral result and a channel announcement. The sampled source shows these stages in bot.js and the bot’s configuration in ayarlar.json. No README capabilities beyond support information are documented.
Main entry points: bot.js CK request handler · ayarlar.json Bot configuration
Components 8
Discord interaction
- Discord platform
- CK request handler
bot.js - Button handler
bot.js
CK processing
- Player lookup
bot.js - Account data deletion
bot.js
Configuration and data
- Bot configuration
ayarlar.json - MySQL database
Other components
- User
Connections 11
- User → Discord platform: submits ID
- Discord platform → CK request handler: delivers message
bot.js - CK request handler → Player lookup: checks ID
bot.js - Player lookup → MySQL database: queries player
bot.js - CK request handler → Discord platform: sends confirmation
bot.js - User → Discord platform: clicks button
- Discord platform → Button handler: delivers interaction
bot.js - Button handler → MySQL database: deletes records
bot.js - Button handler → Discord platform: sends result and notice
bot.js - Bot configuration → CK request handler: provides channel ID
bot.js - Bot configuration → Button handler: provides bot token
bot.js