face-hh / discordmium

Discordmium brings the Chromium browser instance in Discord, of course limited to the Discord API. - Made for Documatic Hackathon
https://facedev.xyz
70 stars 17 forks source link

typing #5

Closed asdfzxcvbn closed 1 year ago

asdfzxcvbn commented 1 year ago

i feel incredibly stupid opening an issue for this but here it goes: how do i even type? i've seen the youtube video where you type without any problems, but i just can't get it to work. i get the mouse in the search box, click inside it, then press the typing key and send a message. the bot reacts to my message with a checkmark, but after refreshing the screenshot by clicking another button, there is no text visible. am i just being stupid or is there an issue?

asdfzxcvbn commented 1 year ago

also forgot to mention that i've tried running it on both my VPS as well as my own computer, if that means anything

face-hh commented 1 year ago

Hello @asdfzxcvbn, thank you for reporting this issue. I will look into this and hopefully find a fix.

face-hh commented 1 year ago

It seems like I can not replicate your issue, are you sure the input element was focused when you pressed the type button?

image image

Vinayak1857 commented 1 year ago

i feel incredibly stupid opening an issue for this but here it goes: how do i even type? i've seen the youtube video where you type without any problems, but i just can't get it to work. i get the mouse in the search box, click inside it, then press the typing key and send a message. the bot reacts to my message with a checkmark, but after refreshing the screenshot by clicking another button, there is no text visible. am i just being stupid or is there an issue?

i am also facing the same issue

face-hh commented 1 year ago

Try modifying in index.js: page.keyboard.type => page.type.

Vinayak1857 commented 1 year ago

Try modifying in index.js: page.keyboard.type => page.type.

still the same problem

face-hh commented 1 year ago

What browser are you using? (If you're using Chrome, is it Google Chrome or Chromium?)

Fel1xxxxx commented 1 year ago

uhm i have the same issue

Fel1xxxxx commented 1 year ago

but for me, bot doesn't even reacts with checkmark

asdfzxcvbn commented 1 year ago

alright, i've figured it out. the bot requires the message content intent enabled in order to work. maybe you could implement a system to NOT react to the message if this is disabled? (if this is possible, of course) a guide to making the discord bot itself might be helpful to other users as well, and i might open a pull request later to add this if i'm not busy.

asdfzxcvbn commented 1 year ago

for anyone else facing the issue, you can enable it on the bot page of your application at https://discord.com/developers/applications/your bots appid/bot image