JJ-8 / CTFNote

CTFNote is a collaborative tool aiming to help CTF teams to organise their work. This tool helps making notes during CTFs, so you can track your CTF notes at a later time. This is similar to the CTF pad seen in one of the video's of Liveoverflow.
GNU General Public License v3.0
9 stars 2 forks source link

Cannot read properties of undefined (reading 'id') #60

Closed G3ph4z closed 1 year ago

G3ph4z commented 1 year ago

Hello,

I've installed the latest version, configured the discord bot, but when I imported an event from CTFTime, this happened:

Bot name bot is online
Failed to get CTF from the database: TypeError: Cannot read properties of undefined (reading 'id')
    at buildCtf (/app/dist/discord/database/ctfs.js:43:17)
    at /app/dist/discord/database/ctfs.js:139:43
    at step (/app/dist/discord/database/ctfs.js:33:23)
    at Object.next (/app/dist/discord/database/ctfs.js:14:53)
    at fulfilled (/app/dist/discord/database/ctfs.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
G3ph4z commented 1 year ago

So I figured out that it was a user error by me, I thought the bot will automatically create the needed channels for the event.

Anyway, thanks!

JJ-8 commented 1 year ago

@G3ph4z, thank you for your feedback. Since other users are now also using my fork, I have improved the documentation in the README.

G3ph4z commented 1 year ago

@JJ-8 I'm a bit late, but thank you so much for your work, it's very helpful!