/discord-log-bot

Make your own discord log bot with 3 different database support

Primary LanguageJavaScriptMIT LicenseMIT

dWdnY2Y6Ly9iY3JhLmZjYmd2c2wucGJ6L2dlbnB4LzVwc2tIZ1B4Y3hQVkVlWGxxVVhGb1kgcm90MTM=
6 28 15 26 15
{/__/}
( • . •)
/ > 🤍

Discord Log Bot

Total Views Last Commit

Need a help ?

Do you need a tutorial? Watch Youtube Video

If you need help, join the Discord server here

Contents

⭐・Star History
👑・Features
⚙・Config.json example
🔗・Required Links
🎈・Installation

⭐・Star History

Goal: / 512

⭐⭐⭐ You can also give this repository a star so that others know we're trusted!

Star History Chart

👑・Features

  • Assigns the logs of almost all mismatch events to the channel you set
  • Auto Installing Dependencies
  • Anti Crash
  • Multi Database Support
    • JSON
    • MYSQL
    • MONGODB

⚙・config.json example

{
    "bot": {
        "token": "xxx" / your discord bot token
    },
    "db": {
        "type": "x", / your preferred database type (json, mysql, mongodb)
        "mysql": {
            "MYSQL_HOST": "xxx", // fill this section if u preferred mysql
            "MYSQL_USER": "xxx", // fill this section if u preferred mysql
            "MYSQL_PWD": "xxx", // fill this section if u preferred mysql
            "MYSQL_DB": "logger" // dont touch this
        },
        "mongo": {
            "MONGO_TOKEN": "mongodb+srv://xxx" // fill this section if u preferred mongodb
        }
    }
}

🔗・Required Links

NodeJS
Terminal
Bot ZIP File

🎈・Installation

🖥️・Windows / Linux

# Check Node.js version:
node -v

# Clone the files with git:
git clone https://github.com/Mid0aria/discord-log-bot
# Optionally you can also download from github at https://github.com/Mid0aria/discord-log-bot/archive/refs/heads/main.zip

# Enter into the cloned directory:
cd discord-log-bot

# Configure the bot
notepad config.json # On windows
nano config.json # On linux, can also use any other preferred file writing software

# Run the bot:
node bot.js