Discourse Trust Levels for Discord

I’m all for using oauth2 or any other means of eliminating user malice and/or error.

I was just proposing a quick and dirty solution to getting around the discord email look up problem.

The work to achieve that was done months ago by @featheredtoast and if that’s all you need you can install the plugin which @falco linked above.

As to the scope of this topic, building on that link to sync trust levels, if you can’t wait for @sudaraka to finish his work your other option is to post over on marketplace. Include your proposed budget to see whether another developer would be willing to build this for you sooner.

Yes. This is correct as far as I can tell, being a user of both plugins.

Patreon requires log-in via Patreon, then syncs your account to your pledge tier.

Would be great to sync Discord roles via Discourse, since Discourse has the information via Patreon already once logged in.

I’d like to gauge interest for an Discourse plugin that does the following:

  1. An administrative interface for an admin to connect their Discourse instance to a Discord instance via the Discord API. The authentication would be via OAuth 2.

  2. Controls to associate Discourse Groups with Discord Roles, so that members of a group have a certain discord role and vice versa.

Note that this won’t involve or rely on Discord OAuth as a method of user account authentication. The goal is a have a solution that is agnostic about the way you let you users sign up / login.

In terms of identifying users across both platforms, this will be handled by associating ids as a first step, then by email if the relevant id is not available.

If you’re interested in sponsoring such a plugin, now’s your chance. I have time to work on it next week.

@Bernstein @Hanzo1 @Watercolor_Games

Just an update here, we’re going ahead with building this.

Further details here:

If you want to sync Discourse Groups and Discord Roles, we’d appreciate a contribution to the Paypal pool for this work here (currently one sponsor):

*Update

@Hanzo1 @Wedgebert @chagara Are you guys still interested in syncing Discourse and Discord Groups and Roles? If so, we’re in the process of building an integration and need a few more backers to hit our (relatively speaking) low target of $1000 USD. Any contributions > $100 welcome.

We’re interested, but I’ll have to talk to our treasurer about getting donation money together.

I just chipped in some, we’re almost at the target.

For anybody here who is lurking and considering it, I want to emphasize how incredibly reasonable of a funding goal this is for such useful functionality.

There’s one day left and we’re currently $300 short. If you’re even slightly interested in this, now’s your chance to make it happen. :smiley:

We’ll be donating as soon as the person with access to the PayPal account gets online and does it.

Hey guys, just wanted to say I’m still following the project. Though I’ve moved away from using a forum specifically for my community, (we moved to reddit), it’s really awesome to see my MacGyvered-together proof of concept turn into a reality. I haven’t been able to follow the project much due to highschool and other personal reasons, but things are really shaping up from what I can tell. Good luck, guys! :slight_smile:

Donation has been made

Perfect advice :+1:

Heads up (and @featheredtoast) I’m working on a PR for this plugin to

  • change the class inheritance up a level to Auth::ManagedAuthenticator to
    • leverage the richer functionality to simplify the plugin
    • bring the implementation in line with Facebook and Google OAuth (storing additional info in user_associated_accounts)
  • store the user ID to facilitate my next step … :wink:

UPDATE: Submitted

Это действительно интересная идея! С нетерпением жду, куда это может привести.

Некоторый значительный прогресс в интеграции… посмотрите, сможете ли вы его заметить :robot: :wink: (спасибо @falco за помощь в устранении препятствия)

=> Запуск Puma
=> Приложение Rails 5.2.3 запускается в режиме разработки
=> Выполните `rails server -h` для получения дополнительных опций запуска
Запуск наблюдателя изменений CSS
-------------------------------------
Бот запущен, напишите "Ping!" в Discord!
-------------------------------------
[INFO : websocket @ 2019-06-30 11:00:05.038] Discord использует версию протокола шлюза: 6, запрошено: 6
Запуск Puma в одиночном режиме...
* Версия 3.12.1 (ruby 2.6.1-p33), кодовое имя: Ламы в пижамах
* Минимум потоков: 0, максимум потоков: 16
* Окружение: разработка
* Прослушивание на tcp://0.0.0.0:3000
Используйте Ctrl-C для остановки

Этот бот отвечает в Discord, что определяется кодом, работающим в моём плагине для Discourse.

Примечание: на данный момент это лишь доказательство концепции, и до готовности к использованию в продакшене ещё может быть далеко!

Теперь функция кика в Discord работает в зависимости от уровня доверия в Discourse.

При желании вы можете удалить всех пользователей вашего сервера Discord, которые ещё не достигли минимального уровня доверия на вашем форуме Discourse.

Мне ещё предстоит упаковать это и запустить плагин… следите за новостями.

Отлично, функция кика теперь работает. То, что вы видите, запущено на продакшн-экземпляре Discourse (логика бота, разумеется, скриншот сделан в Discord :D).

Всё ещё предстоит провести тестирование, исправить баги (особенно в синхронизации групп) и написать большую часть документации, чтобы помочь пользователям с настройкой (что, к сожалению, не так просто).

Также с первого дня будет поддерживаться «синхронизация» групп (копирование групп Discourse и их участников в зависимости от заданных критериев).

NB Нам всё ещё не хватает $200 до цели.

Это была огромная работа.

Спасибо всем, кто уже внес свой вклад: сторонники получат приоритетную помощь в настройке.

Я попытался внести свой вклад, но система пишет: «пул закрыт»?

Я создал новый сбор средств для дальнейшей поддержки работы @merefield здесь (к сожалению, PayPal не позволяет повторно открывать сборы):

(@merefield и я работаем вместе)

Ого, спасибо, Джефф!!!

Да, если это ещё не очевидно, Энгус и я теперь сотрудничаем во многих проектах, и наша команда действительно растёт…

Спасибо, ребята :grinning:

Финансирование этого плагина уже обеспечено, и плагин теперь запущен здесь: Discord Bot Construction Kit 🤖

… давайте продолжим обсуждение, связанное с этим новым плагином, там.