# SourceCred Discord Plugin

**URL:** <https://discourse.sourcecred.io/t/sourcecred-discord-plugin/283>\
**Category:** Initiatives\
**Tags:** 🏗️in-progress\
**Created:** [October 11, 2019, 8:17pm UTC](https://discourse.sourcecred.io/t/sourcecred-discord-plugin/283 "2019-10-11T20:17:14Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![decentralion](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sourcecred.io/decentralion/32/7_2.png) [@decentralion](https://discourse.sourcecred.io/u/decentralion)\
**Post date:** [February 5, 2020, 10:39pm UTC](https://discourse.sourcecred.io/t/sourcecred-discord-plugin/283/11 "2020-02-05T22:39:17Z")

</div>

> [@brianlitwin](#):
>
> Do you think we should scrape the didathing channel (like I believe we mentioned on the last team call) or the whole sever/guild?

At the data layer, we should scrape everything. We may have a plugin config option to assign special meanings to special channels. Generally however, a valuable contribution can happen in any channel, so I think we should be scanning the whole server.

At the graph creation layer, I think that for now, creating a node and edges for every single message would be too much noise, especially since it’s not obvious what the edge structure between messages should be. Instead, let’s create nodes only for messages that receive :sourcecred: reactions with the following structure:

# Nodes

- message
- user
- reaction

# Edges

- user → creates → reaction
- user → posts → message
- reaction → reacts\_to → message
- message → references → (referencable)

> [@brianlitwin](#):
>
> Something to consider is that the didathing channel is composed of a lot of references to things that will already have nodes, like reviews and pull requests.

Yep, the fact that we’ll get references is a feature not a bug – it means, for example, that if my posting the PR in #didathing results in a lot of :sourcecred: reactions, then some more cred will flow to the PR.

This will be feasible thanks to @Beanow’s work on [Unified Reference Detection](https://discourse.sourcecred.io/t/unified-reference-detection/301).

---

_[View the full topic](https://discourse.sourcecred.io/t/sourcecred-discord-plugin/283)._
