message collector from array
I'm using an attachments and message content, to get the question and answer like this:
52 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPsöyle kanka hata ne
yardım ededyim
edeyim*
with this code:
kanka yanlış yapıyon
so I want to wait until someone answers then it'll send the second attachment that in the chat
channel
he
kanka
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
he is Turkish
i am too
can i help with using Turkish
I'm not Turkish
oh the "test"
okey my bad
if i was you
i'd do like this
i could create a db and set the text
then i'd use messageCreate again
and if(message.content ==== db.text) return
i think that way is way too good
what is ur db?
I'm using json files if I'll use a db
okey i'll send a code wait
What is Ch and Main ?
Ch is the channel to collect the attachment and content,
Main is the channel to send the attachment and collect the correct answer from
should correct answer have a attachment ?
no
just content
oh okey wait
oh i guess
do u wanna like if nobody answered in 5 minutes the event should cancel ?
yes but in 10 seconds better
is this what u wanna ?
it's isn't possible to collect from chat because it's gonna be allowed for everyone to add he's own image + content (which is the answer)
that's why I had to do it like this
it is possible
i checked here the message content if it is true answer
and after someone answered it'll continue to send the second and third attachments and so on untill the bot sends all the attachments in the chat
so
please tell me clearly
what you wanna ?
You tell me it is just message content
and u re saying there are attachments too
I'll show you an example
So the bot's gonna take the attachments from here to send it in the
MainCh
and will wait for 10s to answer and the answer gonna be The Attachment's message content
if someone got it right or the time ends it'll wait 10 seconds then send the second attachment
and so on untill the bot send all attachments
in MainCh, will you write manuelly
yes the people there will try to guess the correct answer, which is the message content for the attachment's message
okey that code'll work
.
but i'll edit wait
okay mate
Okey
that'll work
But that
it'll work like
Channel 1
Channel 2
You write "Try" in Channel 1 and it'll delete that then bot will send a attachment Channel 2 and time'll start
if they write, time'll delete and game done
if they don't bot'll send a message to they don't write correct answer
it shouldn't done before the bot sends all the messages that contains an attachment the
Ch
chatOh
i guess you wanna if it able there are many question for answer
and if all question is sent bot should start time
no no for each question there's time, if they didn't answer the correct answer in time or they did. it'll wait 10 seconds and it'll send the next attachment and start another 10s untill the attachments are done
The questions did sending but bot should start their time in order
am i right
this the best way until now but I couldn't made it like send one attachment and send another after answering the correct answer or after the time is up
okey if you know "the best way"
you can finish it
bye
And i know %100 you are turkish
anyway
I'm not and why ur mad?
i am trying to help but
u still say the best way is mine
and then how can i help you
okay I'm sorry, help me
are we good now?
?
is it true
no it should send one question and send another after the time is up or after someone answers the correct answer
okey
then
the code'll work but
You write question 1
and the time done
you write question 2
it is manual way
you wanna automatic way
but idk how it can be possible
oh, okay
it is manual way
i hope i write true thing
I prefer to do it in automatic way
i don't know english %100
yeah i understood but idk mate sorry
you did help me so much so thanks you for the help
love you
no worries
love you too
i hope you'll get automatic way
have a nice evenin'
you too ❤️