Giter Club home page Giter Club logo

Comments (3)

lukeadams84 avatar lukeadams84 commented on September 13, 2024

config.json is as follows:

{
"PORT": 8000,

"USE_WEBHOOKS": false,
"WEBHOOK_URL": "https://discord.com/api/webhooks/#####",
"IGNORE_WEBHOOKS": false,
"DISCORD_TOKEN": "################",
"DISCORD_CHANNEL_ID": "769955004906733610",
"DISCORD_CHANNEL_NAME": "#minecraft",
"DISCORD_MESSAGE_TEMPLATE": "`%username%`: %message%",

"MINECRAFT_SERVER_RCON_IP": "127.0.0.1",
"MINECRAFT_SERVER_RCON_PORT": 25575,
"MINECRAFT_SERVER_RCON_PASSWORD": "#####",
"MINECRAFT_TELLRAW_DOESNT_EXIST": false,
"MINECRAFT_TELLRAW_DOESNT_EXIST_SAY_TEMPLATE": "<%username%> %message%",
"MINECRAFT_TELLRAW_TEMPLATE": "[{\"color\": \"white\", \"text\": \"<%username%> %message%\"}]",

"IS_LOCAL_FILE": true,
"LOCAL_FILE_PATH": "/opt/valhesia/logs/latest.log",

"SHOW_INIT_MESSAGE": true,

"ALLOW_USER_MENTIONS": false,
"ALLOW_HERE_EVERYONE_MENTIONS": false,
"ALLOW_SLASH_COMMANDS": false,
"SLASH_COMMAND_ROLES": [],

"WEBHOOK": "/minecraft/hook",
"REGEX_SERVER_PREFIX": "\\[Server thread/INFO\\] \\[.*\\]:",
"REGEX_MATCH_CHAT_MC": "^<([^>]*)> (.*)",
"REGEX_IGNORED_CHAT": "packets too frequently",
"DEBUG": true,

"SERVER_NAME": "MC-Bot",
"SERVER_IMAGE": "https://##/potato_server.jpg",
"SHOW_SERVER_STATUS": true,
"SHOW_PLAYER_CONN_STAT": true,
"SHOW_PLAYER_ADVANCEMENT": true,
"SHOW_PLAYER_DEATH": true,
"SHOW_PLAYER_ME": true,
"DEATH_KEY_WORDS": ["shot", "fell", "death", "died", "doomed", "pummeled", "removed", "didn't want", "withered", "squashed", "flames", "burnt", "walked into", "bang", "roasted", "squished", "drowned", "killed", "slain", "blown", "blew", "suffocated", "struck", "lava", "impaled", "speared", "fireballed", "finished", "kinetic"]

}

In addition, the bot does not seem to create its own web hook. However a manually created one works.

Screenshot 2020-10-31 at 01 24 15

from shulker.

destruc7i0n avatar destruc7i0n commented on September 13, 2024

The bot itself does not create the webhook, it is currently manual. I suppose that I should look into the bot making the webhook, since webhooks are much more visually appealing πŸ€”

Apologies for the error there, you can fix that by either re-downloading the project or updating the discord.js version, with yarn add discord.js@^11.6.1

from shulker.

lukeadams84 avatar lukeadams84 commented on September 13, 2024

The bot itself does not create the webhook, it is currently manual. I suppose that I should look into the bot making the webhook, since webhooks are much more visually appealing πŸ€”

Apologies for the error there, you can fix that by either re-downloading the project or updating the discord.js version, with yarn add discord.js@^11.6.1

Thanks! That worked perfectly, and thanks for putting this together, it is much better standalone than adding another mod.

from shulker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.