Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Prevent message looping by getting id/username at runtime instead #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Prevent message looping by getting id/username at runtime instead #8

wants to merge 2 commits into from

Conversation

clindell
Copy link

@clindell clindell commented Oct 28, 2017

Spype has a problem currently where the Skype username is used both to login and to block messages sent by the bot in skypeMessagesReceived. This doesn't work for (newer) users who cannot sign into Skype with a username, who must instead use an email, and it results in message looping.
Spype also currently requires you to set the Discord bot username in its config for the same purpose in discordMessageReceived, which is inconvenient.

I found that this can be avoided quite easily, by instead fetching the Skype username we are using from Skyweb, and similarly the userID of the bot from Discord IO.
This seems to work well for me, with an email based Skype user account and a token based Discord bot.

I've also included a second commit which removes the discord_username from the config.json file, since it has no use with this fix.

Best regards!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant