You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
Add a second username slot in the config file
eg: "skype_username" : "asdf@live.com", //login username "live_username" : "live:asdf_123", //username that is returned by messages or blank if not using Microsoft account
Compare the receiving username against both:
var spypeIsNotSender = (message.resources.from.toLowerCase().indexOf(config.skype_username.toLowerCase()) === -1) && (message.resources.from.toLowerCase().indexOf(config.live_username.toLowerCase()) === -1)
Viola, bot no longer replies to itself
The text was updated successfully, but these errors were encountered:
Add a second username slot in the config file
eg:
"skype_username" : "asdf@live.com", //login username
"live_username" : "live:asdf_123", //username that is returned by messages or blank if not using Microsoft account
Compare the receiving username against both:
var spypeIsNotSender = (message.resources.from.toLowerCase().indexOf(config.skype_username.toLowerCase()) === -1) && (message.resources.from.toLowerCase().indexOf(config.live_username.toLowerCase()) === -1)
Viola, bot no longer replies to itself
The text was updated successfully, but these errors were encountered: