HackMD
    • Create new note
    • Create a note from template
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Dropbox
    • Google Drive
    • Gist
    • Import
    • Dropbox
    • Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
    • ODF (Beta)
    • PDF (Beta)
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      Owners
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • Write
      Owners
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing

      After the note is published, everyone on the web can find and read this note.
      See all published notes on profile page.

    • More (Comment, Invitee)
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      Owners
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
Menu Sharing Create Help
Create Create new note Create a note from template
Menu
Options
Versions Transfer ownership Delete this note
Export
Dropbox Google Drive Gist
Import
Dropbox Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML ODF (Beta) PDF (Beta)
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
More (Comment, Invitee)
Publishing

After the note is published, everyone on the web can find and read this note.
See all published notes on profile page.

More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   Published      
   owned this note    owned this note
   Linked with GitHub
  • Watch - Be notified of any changes
  • Never - Never be notified
--- tags: bridge --- # Adding Discord to g0v bridge 作為 Discord 管理員,要做的事情是 1. 在 Discord 照著 https://github.com/42wim/matterbridge/wiki/Discord-bot-setup 建立好 discord bot、拿到 token、設定 Privileged Gateway Intents、邀請 bot 進自己的 discord - 文中壞掉的圖可參考 https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token ,申請 bot 的步驟一樣 2. 到 https://github.com/g0v/bridge/blob/fun/matterbridge.toml.template 發 PR 修改之,例子:https://github.com/g0v/bridge/pull/3/files 1. 在 `[discord]` 下新增自己的 discord 區塊。 - **Token 記得不要直接貼裡面**!取一個 variable 名字,另外到 `#bridge` 問 @pm5 要怎麼 pass 給他。 - Server ID 就是自己 discord 的 `https://discord.com/channels/<這裡是 ID>/<這裡是 channel ID 不要管他>` - 其他諸如 `PreserveThreading` 等選項見 https://github.com/42wim/matterbridge/wiki/Section-Discord-%28basic%29 2. 在最下面,每一組要連在一起的 channel 就新增一個 ``[[gateway]]`` entry,設定連在一起的 ``[[gateway.inout]]``。 3. 在 g0v Slack 把 `@HelloWorld bot` 邀請到你要連動的 channel 中 4. `@pm5` merge PR 並放好 token 後,就連起來囉~ 5. 歡迎至 g0v slakc #bridge 頻道討論執行細節 ## 已連結案例 Cofacts - Discord: https://discord.gg/mmZS9sZuau - #general - g0v slack - #cofacts - 啟用時間:2023.01 - 維護者:Mrorz 零時小學校 - Discord: https://discord.gg/csDjWBbhvf - #零時小學校交誼廳 - g0v slack - #edu - 啟用時間:2023.03 - 維護者:Ronny UniCourse - Discord: https://discord.gg/aDUjjDf3yZ - #閒聊 - #edu-open-coscup-2023 - g0v slack - #edu-unicourse - #edu-open-coscup-2023 - 啟用時間:2023.03 - 維護者:Sky Hong ## 針對雙邊訊息編修動作,測試結果 以下內容時間點:2023.03 ### 發訊息 - ✅ 文字 - ✅ emoji - ✅ 圖片 ### 回覆 - ✅👀 Discord 的「回覆」,可以顯示在 slack,不過!顯示位置會在「對話串之中」,而非主頻道的新訊息 - ❌ 在 slack 回覆討論串,縱使 sent to #channel ,也都不會同步到 Discord - 包含如果 slack 使用者,在 slack 對 Discord 同步過來的訊息,開 thread,這串 thread 並不會同步到 Discord - 參考: Linking Slack threads to Discord threads https://github.com/42wim/matterbridge/issues/1558#issue-955418564 ### 轉貼至頻道 - 👀 Slack:從另一個 slack 頻道,轉貼內容 (Share Message) 至 slack 頻道 - (1) 轉貼的內容,不會同步顯示至 Discord - (2) 轉貼過程中,Add a message,這個則是可以同步於 Discord - Discord:似乎沒有「頻道之間轉貼」這個功能 ### 編輯 - ✅ Discord 編輯後的內容,也會同步更新至 slack - ✅👀 slack 編輯後的內容,也會同步至 Discord,但是!Discord 那邊會把「新的訊息,整篇」再顯示一次,而非置換 ### 刪除 - ✅ Discord 發出的訊息,在 Discord 刪除後,slack 會同步刪除 - 👀 slack 發出的訊息,在 slack 刪除後,Discord 這邊不會同步刪除,所以!要記得前往 Discord 手動刪除 ### 圖片 - ✅ Discord 張貼圖片,可以同步至 slack - ✅ slack 張貼圖片,可以同步至 Discord ### 備份 (slack archive) - 👀 slack archive 似乎不會紀錄 Discord 傳過來的訊息,以下是 3/5 slack #edu 頻道對話紀錄網址中,查無本則訊息 - https://g0v-slack-archive.g0v.ronny.tw/index/channel/CN64A1FHA#ts-1677997542.5826 - 不過,如果把訊息轉傳到另一個 slack 頻道,則可以記錄於 Archive,例如 把本則訊息,從 #edu 轉至 #bridge 可被紀錄,但是篇幅受限制,基於 slack 轉貼訊息預覽長度的字數限制 - https://g0v-slack-archive.g0v.ronny.tw/index/channel/C01SHPD80UD/2023-03#ts-1678002258.3854

Import from clipboard

Editing is for members only

With current role, you can only comment.
Learn how

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Transfer ownership

    or

      Create a note from template

      Create a note from template

      Oops...
      This template is not available.
      All
      • All
      • Team
      No template found.

      Create a template

      Delete template

      Do you really want to delete this template?

      This page need refresh

      You have an incompatible client version.
      Refresh to update.
      New version available!
      See releases notes here
      Refresh to enjoy new features.
      Your user state has changed.
      Refresh to load new user state.

      Sign in

      Forgot password

      or

      Sign in via Facebook Sign in via GitHub Sign in via Google

      New to HackMD? Sign up

      Help

      Documents

      Features
      YAML Metadata
      Slide Example
      Book Example

      Cheatsheet

      Example
      Header # Header
      • Unordered List
      - Unordered List
      1. Ordered List
      1. Ordered List
      • Todo List
      - [ ] Todo List
      Blockquote
      > Blockquote
      Bold font **Bold font**
      Italics font *Italics font*
      Strikethrough ~~Strikethrough~~
      19th 19^th^
      H2O H~2~O
      Inserted text ++Inserted text++
      Marked text ==Marked text==
      Link [link text](https:// "title")
      Image ![image alt](https:// "title")
      Code `Code`
      var i = 0;
      ```javascript
      var i = 0;
      ```
      :smile: :smile:
      Externals {%youtube youtube_id %}
      LaTeX $L^aT_eX$

      This is a alert area.

      :::info
      This is a alert area.
      :::

      Versions

      Versions

      Version named by    

      More Less
      • Edit
      • Delete

      Note content is identical to the latest version.
      Compare with
        Choose a version
        No search result
        Version not found

      Feedback

      Submission failed, please try again

      Thanks for your support.

      On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

      Please give us some advice and help us improve HackMD.

       

      Thanks for your feedback

      Remove version name

      Do you want to remove this version name and description?