shtrih / discord-xmpp-transport-bot Goto Github PK
View Code? Open in Web Editor NEWSimple transport bot between Discord channel and Jabber conference
Simple transport bot between Discord channel and Jabber conference
Необходимо реализовать функционал, позволяющий боту полноценно "клонировать" пользователей jabber'а в дискорд и наоборот, заводя для каждого пользователя одной из этих систем аккаунт с идентичным ником в другой системе.
В рамках данного функционала необходимо:
Hi,
when i generated the invitiation url, what do i do with it? (where to put it).
without that - if i run it (where to put client id?)
i get
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `export DEBUG=info,error:*,-debug:*; node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'export DEBUG=info,error:*,-debug:*; node app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the discord-jabber-transport-bot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! export DEBUG=info,error:*,-debug:*; node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs discord-jabber-transport-bot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls discord-jabber-transport-bot
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/acoloss/discord-xmpp-transport-bot/npm-debug.log
Discord user "Сестромару" shown as "undefined".
Сейчас, если в джаббере написать @никнейм
, то в дискорде этот никнейм никак не хайлайтится.
Перед созданием сообщения в дискорде, нужно сопоставить этот никнейм с никами юзеров в дискорде, затем произвести замену текста @никнейм
на <@!userID>
согласно док-ции.
Bot connects to Discord and XMPP, shows as online. When I type anything into the Discord channel to be sent to XMPP, I get the following:
/home/redacted/discord-xmpp-transport-bot/lib/RemDiscord.js:49
throw {'error': 'Can't send message', channel, message};
^
[object Object]
When I use the !send command via DM, it is able to send to the Discord channel. I'm not sure why it's trying to send to Discord when the expected behavior would be to send to the XMPP room.
Please let me know if I can provide any additional information. Thank you!
Best Regards,
Martin
Нужно запилить какой-то буфер сообщений из джаббера, так как из-за ограничений на частоту отправки сообщений в дискорде, некоторые частые сообщения могут не доходить в дискорд.
Отлавливать ошибки rate limit и пытаться отправлять снова. Возможно, здесь же проверять на одинаковость, чтобы не создавать флуд.
im not sure if this is my problem, the software's problem, or the sevrer's problem, but the only way i could get my bot to log into the jabber server was with no password. every time i tried entering the (correct) password into the config file, it said xmpp authentication error in dms. i dont know if this is related at all to the error im getting now, but the bot seems to work fine until it crashes.
here is a screenshot of when i ran app.js in a windows 7 command prompt
(windows 7 probably isnt ideal for running this, but my server pc already has it, and i have software that only works on windows.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.