discord-tickets / bot

The most popular open-source and self-hosted ticket management bot for Discord - a free alternative to the premium and white-label plans of other popular ticketing bots.
https://discordtickets.app
GNU General Public License v3.0
938 stars 476 forks source link

trouble using discord bot #36

Closed ghost closed 4 years ago

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.72. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

eartharoid commented 4 years ago

A template? 🤔

ghost commented 4 years ago

uh

ghost commented 4 years ago

so i got it to work but now i get the error [17:32:38 | ERROR] TypeError: Cannot read property 'member' of undefined

eartharoid commented 4 years ago

Does it say what line the error came from below?

ghost commented 4 years ago
at Object.execute (/home/container/src/events/ready.js:36:44)
at Client.<anonymous> (/home/container/src/index.js:98:68)
at Client.emit (events.js:314:20)
at WebSocketManager.triggerClientReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
at WebSocketShard.<anonymous> (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:314:20)
at WebSocketShard.checkReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
ghost commented 4 years ago

do i need to use a specific version of node

ghost commented 4 years ago

im currently using v14

eartharoid commented 4 years ago

v14 is fine. As shown in the instructions on the wiki, you need to configure 3 or 4 Discord IDs in your config. You havem't set guild (or it is incorrect).

ghost commented 4 years ago

after following the wiki instructions, i still get

[18:11:44 | WARN] Uncaught TypeError: Cannot read property 'tag_name' of undefined [18:11:44 | ERROR] TypeError: Cannot read property 'tag_name' of undefined at /home/container/src/modules/updater.js:28:27 at processTicksAndRejections (internal/process/task_queues.js:93:5) [18:11:45 | INFO] Authenticated as discordbottag [18:11:45 | WARN] An error was not caught [18:11:45 | WARN] Uncaught TypeError: Cannot read property 'member' of undefined [18:11:45 | ERROR] TypeError: Cannot read property 'member' of undefined at Object.execute (/home/container/src/events/ready.js:36:44) at Client. (/home/container/src/index.js:98:68) at Client.emit (events.js:314:20) at WebSocketManager.triggerClientReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17) at WebSocketManager.checkShardsReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10) at WebSocketShard. (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14) at WebSocketShard.emit (events.js:314:20) at WebSocketShard.checkReady (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12) at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16) at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)

eartharoid commented 4 years ago

Have you fully configured the bot and restarted the bot after doing so? The guild is still missing.

eartharoid commented 4 years ago

@artificialpaper still need help?

ghost commented 4 years ago

uh i give up at this point

eartharoid commented 4 years ago

oof