Comments (3)
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.
from shulker.
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.
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)
- Discord mentions in MC don't successfully mention in Discord
- Discord messages not in minecraft anymore HOT 8
- ERR_BUFFER_OUT_OF_BOUNDS HOT 2
- Help with Regex HOT 10
- Help with setting up bot on heroku
- The datapack does not show in my minecraft server HOT 2
- Death message false positives HOT 1
- unable to build HOT 1
- "Cannot read property 'id' of undefined" HOT 14
- player head don't show up in discord as player
- How can I add 2nd channel to send commands to server
- Messages containing norwegian letters Γ¦ ΓΈ Γ₯
- Please help me create the bot I am hella confused. My Discord LUCKY#1840 HOT 1
- Can't get it to work on 1.7.10 Minecraft (GT: New Horizons) HOT 1
- Unicode characters issue in names when sending from Discord to Minecraft
- `/` in RCON commands do not work on Spigot servers
- When @ someone on discord a zero width space unicode is part of the message
- Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet -1/0 (yu) was larger than I expected, found 32 bytes extra whilst reading packet 0 HOT 1
- Chat -> Discord is not working. Everything else works as expected. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shulker.