Giter Site home page Giter Site logo

coosanta17 / crafty_discord_bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 3.2 MB

A Discord Bot to interact with and control Crafty Controller

License: Other

JavaScript 100.00%
api crafty-controller dedicated-gameservers discord discord-api discord-bot discord-js discordbot discordjs minecraft

crafty_discord_bot's Introduction

Hi! Iā€™m @Coosanta17!

I make Minecraft Java edition Datapacks (amateur) and do (failed) attempts on mods

Languages I am fluent in are: English, Java, Grand Stave and Alto clef.

Languages I am learning are: JavaScript, Python, and Chinese.

To contact me for anything except spam my discord is coosanta

Projects I'm currently working on

The Amalgam - (on hiatus)

I have other small projects that I usually lose interest in quickly but you can check it out on my profile

My projects progress very slowly because I am busy and programming is a low priority

discord server: https://discord.gg/hDQGrCWaPJ

Top Langs

crafty_discord_bot's People

Contributors

coosanta17 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

crafty_discord_bot's Issues

Various errors, probably user error

Hi, I'm new to Linux, Discord bots and basically everything to do with this project. I tried setting this bot up and the prerequisite steps worked fine but when I run node . I receive errors that are kinda unreadable to me:

Fetching application info...
Stop command is disabled.
Interval "autoStopInterval" started.
Restored existing or missing interval.
Checking if application (/) commands need updating...
No update needed.
/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:2 76
const err = new Error(Unhandled 'error' event emitted, received ${stringifiedError});
^

Error: Unhandled 'error' event emitted, received [object Object]
at WebSocketShard.emit (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@vladfrangu/async_ev ent_emitter/dist/index.cjs:276:19)
at WebSocketShard.onClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@discordjs/ws/dis t/index.js:1148:14)
at connection.onclose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@discordjs/ws/dist/in dex.js:686:17)
at callListener (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/event-target.js:290: 14)
at WebSocket.onClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/event-target.js :220:9)
at WebSocket.emit (node:events:517:28)
at WebSocket.emitClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/websocket.js: 272:10)
at TLSSocket.socketOnClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/websocket .js:1341:15)
at TLSSocket.emit (node:events:529:35)
at node:net:351:12 {
context: {
error: Error: Used disallowed intents
at WebSocketShard.onClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@discordjs/ws /dist/index.js:1149:18)
at connection.onclose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/@discordjs/ws/dis t/index.js:686:17)
at callListener (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/event-target.js: 290:14)
at WebSocket.onClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/event-targe t.js:220:9)
at WebSocket.emit (node:events:517:28)
at WebSocket.emitClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/websocket .js:272:10)
at TLSSocket.socketOnClose (/mnt/Internal25/Minecraft/Discordbot/crafty_discord_bot/node_modules/ws/lib/webso cket.js:1341:15)
at TLSSocket.emit (node:events:529:35)
at node:net:351:12
at TCP.done (node:_tls_wrap:657:7)
}
}

Node.js v18.19.1

Do you have an idea what I could be doing wrong?

Config file location

I am new to linux and programming in general and I get confused pretty easily. I can't understand where is the actual config file I should edit to make the bot work. I don't know the etiquette for posting issues in this platform, so I hope I did't break any rules with this short post and probably stupid question.

Thank you for your help

Raspberry Pi zero 2 w freezes when running the bot

Config creation works perfectly.
Once config is created it seems to get stuck at reading it (maybe?)
It could have something to do with the disk being a microSD or completely irrelevant but I'm quite confused as to why it is stuck.
Other discord bots work perfectly on this (although they use .env rather than config)

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.