revoverflow / discord.json

Discord.json | Make your own discord bot with json !
GNU General Public License v3.0
27 stars 12 forks source link
bots botsfordiscord discord discord-bot easy easy-to-use javascript js json nodejs nodejs-bot

discord.json

Sample configuration

{
    "general": {
        "token": "",
        "debug": false
    },
    "welcome": {
        "enabled": true,
        "type": "channel",
        "channel_id": "508650923447287812",
        "message": "Welcome {user} to {guild} ! Your id is {id} !"
    },
    "byebye": {
        "enabled": true,
        "type": "channel",
        "channel_id": "508650923447287812",
        "message": "See you soon {user} in {guild} ! His id was {id} !"
    },
    "commands": [{
            "command": "!hey",
            "action": "send_message",
            "message": "Hey!"
        },
        {
            "command": "!heymp",
            "action": "send_dm",
            "message": "Hey!"
        },
        {
            "command": "!givemyskill",
            "action": "add_role",
            "role_id": ""
        },
        {
            "command": "!removemyskill",
            "action": "remove_role",
            "role_id": ""
        },
        {
            "command": "!switchmyskill",
            "action": "switch_role",
            "role_id": ""
        }
    ],
    "reaction_messages": [{
        "channel_id": "",
        "message_id": "",
        "action": "role",
        "role_id": "",
        "reaction": "🌠"
    }],
    "presence": {
        "enabled": true,
        "type": "watching",
        "text": "discord.json <3",
        "streaming_url": "https://www.twitch.tv/thomasbysfr"
    }
}

Advancement

Useful links