MysteryPancake / Discord-Reposter

Bot for reposting Discord messages (work in progress)
MIT License
92 stars 121 forks source link

Repost without being a member of both channels #20

Open Riz-waan opened 4 years ago

Riz-waan commented 4 years ago

Can this script be made to use a user's login/API to repost from one channel to another without being a bot? For example, I am a member of a server and there is an announcement channel that I only can view. I want to repost all the messages in that channel into another channel in a server I created. Is there any way to do this?

MysteryPancake commented 4 years ago

In theory, it should be possible to login by using a user token rather than a bot token on line 9. However, I haven't had much luck with this myself.

This method can be used to obtain your user token, but user accounts have much stricter posting limits, so it may not be possible to repost a lot of messages if it manages to log in.

Discord makes it difficult to login with a user account rather than a bot account, as this is against their terms of service. However, client.login is supposed to work with either a bot or user token.

abhisheksan commented 3 years ago

I have tried to this but I keep getting token invalid whenever I run this. Anyone have any luck using the user token

Advaith2468 commented 3 years ago

i actually made the discord.js with selfbot support and everything works fine but it stops to post webhook after a few minutes thats a problem so i prefer dont use js for relaying messages from another channel to desired channel by user login use python python works great and easyy

Advaith2468 commented 3 years ago

I have tried to this but I keep getting token invalid whenever I run this. Anyone have any luck using the user token

Discord.js has been patched and it no longer supports user login so u should edit the discord.js itself now