Mssjim / discord-server-mirror

Mirror discord server messages to another server
MIT License
19 stars 2 forks source link

Not working for me #17

Open arukateru opened 4 months ago

arukateru commented 4 months ago

I open it and it has just been stuck here for a long time image

Mssjim commented 4 months ago

That's exactly what's expected. You will only see any output on Discord, on the channel that specified the id as "writeChannel". Or are the messages not being cloned as well?

The first account (displayed with a green "[R]" is responsible for reading the "readChannel", it needs to have access to the Server/Channel that will be mirrored.

arukateru commented 4 months ago

I misread nevermind. I didn't realize this was your repo. Yes, the messages were not being cloned either

Mssjim commented 4 months ago

Two things must be considered:

The first is that the accounts to which your tokens have been added will be ignored (to avoid message loops), so the test cannot be used using either of these two accounts. If you only have two and want to test it, you can add just one, and send messages with the other, which will be mirrored normally.

The second thing is that due to a limitation of the discord API, it is not possible to mirror massive servers, so I recommend testing on your own server at first.

An example of use:

I test using three accounts, two of then I added, like you did. My primary mssjim, and another dark.magiciangirl. The third, I just use to send a test message caboose

I use default settings, just put two users tokens and read/write Channels IDs image

The console output image

And what happened on discord during use

"ReadChannel" image

"WriteChannel" image

As you can see, only the message sent by the account outside the script was mirrored, as expected, as it would be a simulation of other members interacting on the server.