pR0Ps / slack-to-discord

Import a Slack export into a Discord server
https://pypi.org/project/slack-to-discord/
76 stars 11 forks source link

Is it possible to change the author of the message? #8

Closed antoniosantosramos closed 1 year ago

antoniosantosramos commented 1 year ago

One limitation is that currently the authorship of the new message belongs to the bot.

image

Can the author of the message be made to be the same as the original Slack message? And if so, do you plan to do it in an upcoming version?

I'm asking because as it's a third person message (a bot) I can't edit it on Discord even though I'm the person who wrote it on Slack.

I guess it's not possible to change the bot icon and replace it in Discord with the original author's icon, right? Thanks in advance

pR0Ps commented 1 year ago

It does seem like there's a way to disguise the bot as a user with some webhook hackery. Apparently the NQN bot uses this method. I'm not sure if this will allow you to edit the messages though since it seems like it's still the bot actually posting the message.

pR0Ps commented 1 year ago

@antoniosantosramos #10 changes the name and avatar of imported messages to match the Slack users (see that PR for a screenshot). Feel free to try out the version on that branch and let me know if you encounter issues.

This doesn't address your issue of editing the message, but I don't think that's possible.

antoniosantosramos commented 1 year ago

Wow!! It is fantastic news. Thanks

I have used the version from the master branch. Use the real name in the messages, but I can't change the icon image. In the example of your image, different icons appear depending on the user. How do you recognize that user?

image

In the image that appears, each message is written separately by the bot (and therefore could have a different profile image). But when I import my "export" Slack zip, several messages from different users appear under the same bot. Why are different?

image

pR0Ps commented 1 year ago

You were still using the old version which didn't change the names and icons (this was also why messages were all grouped under the same bot). The changes I made in #10 have now been merged to master so if you update and reinstall you should start seeing the new usernames and icons.