<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://blog.jagrosh.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.jagrosh.com/" rel="alternate" type="text/html" /><updated>2021-11-06T00:18:46+00:00</updated><id>https://blog.jagrosh.com/feed.xml</id><title type="html">jagrosh’s Blog</title><subtitle>My thoughts, ideas, and guides for anyone willing to read</subtitle><author><name>John Grosh</name><email>j@gro.sh</email></author><entry><title type="html">An Intriguing Social Engineering Scam</title><link href="https://blog.jagrosh.com/discord/an-intriguing-scam/" rel="alternate" type="text/html" title="An Intriguing Social Engineering Scam" /><published>2021-11-05T00:00:00+00:00</published><updated>2021-11-05T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/an-intriguing-scam</id><content type="html" xml:base="https://blog.jagrosh.com/discord/an-intriguing-scam/">&lt;p&gt;Preface: I describe some tasks in this story that are potentially dangerous; please do not go messing around in devtools without knowledge of what you are doing.&lt;/p&gt;

&lt;p&gt;Earlier today, I received a DM from &lt;em&gt;lost in the clouds&lt;/em&gt;, with just the word “hi”. I get tons of these every day, so I didn’t even give it a second thought, I just click past it. One minute later, I get banned from the Gorillaz server. I also don’t notice this, as I’m in a lot of servers, and that one is quite far down on my list. A few minutes later, I receive a strange DM from &lt;em&gt;Smithward&lt;/em&gt;. He mentions that he just banned me from the Gorillaz server, but looking at my profile, he’s not sure if the report against me is legitimate. He then shows me a (faked) screenshot of me sending a malware executable in DMs (similar in style to the current nitro scams). I confirm that I have never sent such a DM, and he offers to open a group DM with me and the person who accused me. I accept, and I get added to a group with &lt;em&gt;Smithward&lt;/em&gt; (supposedly the mod who banned me) and &lt;em&gt;bobboi&lt;/em&gt; (at the time, he had a different username, and at some point during these events changed it, but I will only use the final name for clarity). After opening the group DM and introduction for its purpose, &lt;em&gt;bobboi&lt;/em&gt; claims that I definitely sent the contents of the screenshot, and promptly leaves the group DM.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;At this point, I suspect that this &lt;em&gt;bobboi&lt;/em&gt; person was just trying to frame me, and as soon as he was confronted, decides to leave, as he has no way to back up his story. However, &lt;em&gt;Smithward&lt;/em&gt; does not take his unsolicited leaving of the group DM as such. Instead, he asks me to screenshare opening my DMs with &lt;em&gt;bobboi&lt;/em&gt;, just for confirmation. I send him a screenshot of the empty DMs, but he insists on screen sharing. I do a short screen recording, and again, he insists on a screenshare. After carefully checking what I have visible, I share my screen with him, confirming that the DMs are empty. However, this is not enough; he wants me to show my “deleted message history,” and asks me to open the dev tools (ctrl-shift-i).&lt;/p&gt;

&lt;p&gt;Very, very suspicious. Obviously I am not going to open this during a screen share, and I say this. I end the screen share, and he says that I can find this data by going to the Network tab and copying the HAR of a specific request. I take a look at the data this json contains, and unsurprisingly, it contains the entirety of the headers for the request. This of course includes my user token. I mention to him that I’m not going to share the contents because it contains my token, and he briefly denies that it contains the token, before suddenly closing the group DM and deleting all of the messages that he sent to me.&lt;/p&gt;

&lt;p&gt;So… obviously this was a scam.&lt;/p&gt;

&lt;p&gt;Anyway, this whole thing still doesn’t sit quite right with me. Additionally, I was still banned from the Gorillaz server, and while I’m certainly not active there, it’s not great to have a ban sitting there for a false accusation. I ask a friend to find out who the admins of the server are so I can get in contact and maybe clear things up (for them and for me). I contact the admin of the Gorillaz server, informing them that their moderator is conducting a social engineering scam. The admin responds that not only is the user in question not a moderator, but they have never been in the server to begin with! Looking into the ban on the server, he finds the same faked screenshot that &lt;em&gt;Smithward&lt;/em&gt; sent to me. I enquired about the origin of the screenshot, and he says that I was reported to their server by a user called “&lt;em&gt;lost in the clouds&lt;/em&gt;.” Sound familiar?&lt;/p&gt;

&lt;p&gt;The admin and myself each independently reach out to &lt;em&gt;lost in the clouds&lt;/em&gt; in an attempt to find more information. Upon being messaged, he immediately starts backtracking, claiming that he never reported me, and starts accusing both myself and the admin that we are trying to scam him. When the admin sees what has happened, he unbans me and apologizes for the inconvenience, and I thank him for his help looking into this. I continue digging, and finally &lt;em&gt;lost in the clouds&lt;/em&gt; tells me that he “was offered 20 usd paypal to report” me. And can you blame him? In his words, “u would have it to mate its free money mate for reporting another mate.” Well, regardless of who is to blame, I wasn’t finished digging. I ask him who paid him to report me. A lo and behold, the name they offer up is &lt;em&gt;bobboi&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We’ve pretty much come full circle here. &lt;em&gt;bobboi&lt;/em&gt; pays &lt;em&gt;lost in the clouds&lt;/em&gt; to report me from a server, and when that’s successful, &lt;em&gt;Smithward&lt;/em&gt; contacts me about the ban, despite not being a moderator. I of course have no immediate way to confirm, as I can no longer check the moderator list. &lt;em&gt;Smithward&lt;/em&gt; has me interact with &lt;em&gt;bobboi&lt;/em&gt; so that it becomes possible to open a DM, and then uses the guise of trying to look at “deleted message history” as an attempt to send my token, which would have full control of my Discord account. Luckily, I’m very knowledgeable about how the dev tools and requests work and stopped the scam in its tracks. However, this was the most roundabout scam I’ve seen on Discord thus far, and definitely could catch many users. The need to defend one’s innocence is a very powerful feeling, and it is understandable that people might make rash decisions in the quest to show that they are not guilty.&lt;/p&gt;

&lt;p&gt;Are all of these users the same person? Is &lt;em&gt;lost in the clouds&lt;/em&gt; just another alt account, or someone innocent that just got mixed up under the temptation of money? The world may never know (although hopefully Discord’s Trust and Safety team can figure it out). Either way, I’m curious as to whether I was being targeted specifically, or this is a scam that is being attempted against lots of users. it certainly seems like a lot of work, especially if you end up targeting people that know how Discord works.&lt;/p&gt;

&lt;p&gt;That’s about it. Special thanks to &lt;em&gt;Too Many Khaled’s&lt;/em&gt; and &lt;em&gt;Ocean Breeze&lt;/em&gt; for helping me dig into this a bit! Stay safe!&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="psa" /><category term="moderation" /><summary type="html">Preface: I describe some tasks in this story that are potentially dangerous; please do not go messing around in devtools without knowledge of what you are doing. Earlier today, I received a DM from lost in the clouds, with just the word “hi”. I get tons of these every day, so I didn’t even give it a second thought, I just click past it. One minute later, I get banned from the Gorillaz server. I also don’t notice this, as I’m in a lot of servers, and that one is quite far down on my list. A few minutes later, I receive a strange DM from Smithward. He mentions that he just banned me from the Gorillaz server, but looking at my profile, he’s not sure if the report against me is legitimate. He then shows me a (faked) screenshot of me sending a malware executable in DMs (similar in style to the current nitro scams). I confirm that I have never sent such a DM, and he offers to open a group DM with me and the person who accused me. I accept, and I get added to a group with Smithward (supposedly the mod who banned me) and bobboi (at the time, he had a different username, and at some point during these events changed it, but I will only use the final name for clarity). After opening the group DM and introduction for its purpose, bobboi claims that I definitely sent the contents of the screenshot, and promptly leaves the group DM.</summary></entry><entry><title type="html">Bot Development Stagnation</title><link href="https://blog.jagrosh.com/discord/bot-development-stagnation/" rel="alternate" type="text/html" title="Bot Development Stagnation" /><published>2020-08-20T00:00:00+00:00</published><updated>2020-08-20T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/bot-development-stagnation</id><content type="html" xml:base="https://blog.jagrosh.com/discord/bot-development-stagnation/">&lt;p&gt;Over the past few months, development of my bots has nearly come to a standstill. Even the changes that have been made have mostly been performance or scaling improvements, with few or no real new front-facing features. There is not just one reason for this, but rather a compounding of several reasons:&lt;/p&gt;

&lt;!--more--&gt;

&lt;h3 id=&quot;time-limitations&quot;&gt;Time Limitations&lt;/h3&gt;
&lt;p&gt;As most of you already know, making bots is not my job. While I am lucky that donations from generous individuals cover the majority of the hosting and maintenance costs, bot development ends up being a moderately-costly hobby, in addition to the massive amounts of time it can eat up. Unfortunately, the time here is the limiting resource. I work full-time as a software developer, which means that most days I have minimal time for extraneous activities. Even when I do have time, I am often mentally exhausted from work to the point that working on bots can feel like a chore.&lt;/p&gt;

&lt;h3 id=&quot;scaling-limitations&quot;&gt;Scaling Limitations&lt;/h3&gt;
&lt;p&gt;As bots become more popular, the ability to quickly add or improve features slows considerably. When a bot is on more servers, its resource usage increases, so more time must be spent optimizing existing features to continue to run quickly. Just because a feature works well when used by one server doesn’t mean that it will run flawlessly when used by thousands of servers simultaneously. This can be compounded by limitations imposed on Discord’s end, which I will discuss later. Independent of the technical side of scaling, when more people use a bot, more people get used to how a bot works, and so making changes affects more people. Changing the syntax of a command, or removing a feature entirely, will cause more people to be confused or upset when a bot is more popular.&lt;/p&gt;

&lt;h3 id=&quot;support-limitations&quot;&gt;Support Limitations&lt;/h3&gt;
&lt;p&gt;I’ve already discussed how my time is limited, and how making changes and improvements to the bot can be limited by scale, but both of these are also affected by how much support people need. Helping people understand how the bot works and writing documentation to cover more questions takes a lot of time. This is compounded by popularity; as more people use a bot, even if the documentation exists, more people will ask questions. This leads to more time needed to answer these questions, more time needed to improve the documentation in an attempt to reduce questions, and more time needed to try to convince people to read the documentation. All of this time detracts from time that could be spent working on the bot itself. For me specifically, it has nearly gotten to the point that even if I spent all of my free time on bot-related things, I would run out of time just answering questions, without factoring in the time for basic maintenance (like restarting the bot). For people who have asked me questions and haven’t gotten a reply, this is likely the reason; I don’t have the time to personally answer every question, so I generally only answer the ones that can’t be found in the documentation.&lt;/p&gt;

&lt;h3 id=&quot;discord-limitations&quot;&gt;Discord Limitations&lt;/h3&gt;
&lt;p&gt;Beyond the limitations coming from my end, Discord itself presents a lot of limitations. The first thing many people will think of here is global ratelimits, where bots have a maximum number of “things” per second that they can do. Until a bot is extremely popular (in hundreds of thousands of servers), this is a static number that doesn’t change, even when the bot is on more servers (and theoretically doing more “things” total). A bot on one server has the same maximum as a bot on twenty thousand servers. Several features are negatively impacted by this. For example, I recently had to disable voice logging on Vortex, as it was frequently hitting the global ratelimit. It wasn’t necessarily any one server causing the problem, but rather just the sum of all servers using the feature ended up exceeding the global limit. However, these ratelimits are not the only limitation that Discord imposes on bots. Unlike regular users, bots cannot “search” channels, which means that any feature that requires searching must either be done by a user manually, or must be limited to a specific subset of messages (as a bot would have to retrieve groups of messages and scan those for the search term). Limitations like these are discouraging, as they make it impossible or impractical to design some features.&lt;/p&gt;

&lt;h3 id=&quot;discord-api-changes&quot;&gt;Discord API Changes&lt;/h3&gt;
&lt;p&gt;Discord has been changing (and breaking) things fairly frequently. These things tend to be most-noticable when they change things that can be exploited, such as changing the mentions system. When a breaking or exploitable change happens, it takes time to refactor and deal with the change. In time-sensitive situations this can be quite stressful as well. Beyond direct API changes, Discord also has a tendency to introduce other systems or limits that affect large bots. Recently, all bots connected to my account were incorrectly flagged by an anti-abuse system, preventing these bots from being added to servers, and showing a rather malicious message to people trying to add them. While the flag was fixed relatively quickly, it is still inconvenient to the users of my bots, as well as damaging to my bots and their reputation, to have these kinds of problems arise for no good reason.&lt;/p&gt;

&lt;h3 id=&quot;number-of-bots&quot;&gt;Number of Bots&lt;/h3&gt;
&lt;p&gt;Another significant factor in stagnation is simply the number of bots that I maintain. This ends up being compounded by all of the other reasons I’ve explained thusfar; it takes more time to work on more bots, it takes more time to provide support for more bots, and when Discord’s API changes, it takes much longer to update every bot to deal with the changes.&lt;/p&gt;

&lt;h3 id=&quot;upcoming-discord-api-changes&quot;&gt;Upcoming Discord API Changes&lt;/h3&gt;
&lt;p&gt;Very soon, Discord will be severely breaking the functionality of unverified bots. As someone who is uncomfortable with the intrusive requirements to verification (see my separate post about this), this is extremely discouraging. Bots like Vortex and Spectra will be impossible to run with the features they currently have, and even bots that don’t need the verified-only features like GiveawayBot will still be unable to be added to more servers. Also, based on previews of features Discord has released, it is likely that even basic functionality like receiving messages will eventually be locked to verified bots, meaning that hosting a public bot will be completely impossible for people that are uncomfortable with the extreme requirements for verification.&lt;/p&gt;

&lt;h3 id=&quot;summary&quot;&gt;Summary&lt;/h3&gt;
&lt;p&gt;In summary, bot development has stagnated on my end due to lack of time to dedicate to development, a constant barrage of hurdles from Discord’s end, and the looming threat of everything breaking anyway because of unreasonable verification requirements. The combination of all of these means that bot development no longer feels rewarding, but rather a chore that must be repeatedly dealt with.&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="discord-bots" /><category term="development" /><summary type="html">Over the past few months, development of my bots has nearly come to a standstill. Even the changes that have been made have mostly been performance or scaling improvements, with few or no real new front-facing features. There is not just one reason for this, but rather a compounding of several reasons:</summary></entry><entry><title type="html">The Dangers of Discord Developer Verification</title><link href="https://blog.jagrosh.com/discord/the-dangers-of-verification/" rel="alternate" type="text/html" title="The Dangers of Discord Developer Verification" /><published>2020-08-20T00:00:00+00:00</published><updated>2020-08-20T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/the-dangers-of-verification</id><content type="html" xml:base="https://blog.jagrosh.com/discord/the-dangers-of-verification/">&lt;p&gt;A few months ago, &lt;a href=&quot;https://blog.discord.com/the-future-of-bots-on-discord-4e6e050ab52e&quot;&gt;Discord announced the bot verification system and requirements&lt;/a&gt;. Since then, they’ve also added a &lt;a href=&quot;https://support.discord.com/hc/en-us/articles/360040720412-Bot-Verification-and-Data-Whitelisting&quot;&gt;support article&lt;/a&gt; with more details about it. Unfortunately, the blog post does not discuss the implications of verification, and the support article only touches on it very briefly at the end.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h3 id=&quot;bot-verification-requires-sharing-sensitive---and-potentially-dangerous---documents-with-discord&quot;&gt;Bot Verification requires sharing sensitive - and potentially dangerous - documents with Discord&lt;/h3&gt;
&lt;p&gt;At least in the United States, verification requires either a driver’s license or a passport. Both of these are highly sensitive documents that are extremely dangerous in the hands of bad actors. Both of these documents are common targets for identity theft. A driver’s license as a very dangerous piece of documentation to share, and it is often recommended to only share it with government officials or when required by law. See these sources for more information: &lt;a href=&quot;https://www.idtheftcenter.org/can-someone-steal-your-identity-from-your-drivers-license/&quot;&gt;1&lt;/a&gt;, &lt;a href=&quot;https://www.forbes.com/sites/laurenfix/2018/04/17/personal-privacy-of-your-driver-license/&quot;&gt;2&lt;/a&gt;, &lt;a href=&quot;https://www.pcworld.com/article/136120/article.html&quot;&gt;3&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;unknown-discord-employees-have-access-to-your-documents&quot;&gt;Unknown Discord employees have access to your documents&lt;/h3&gt;
&lt;p&gt;From the support article:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Who can access the information I submit?
A small number of employees (as in, fewer than ten) who are involved in security and legal will be able to access the information.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Unfortunately, this doesn’t provide any specific information or names of the employees that have access. “Fewer than ten” does not mean much when there is no way to guess who those “fewer than ten” employees are. Any bad actor working for Discord could theoretically be or become one of those “fewer than ten.” There’s also nothing that would prevent Discord from changing this policy down the road to include more employees or other people.&lt;/p&gt;

&lt;h3 id=&quot;other-platforms-dont-require-nearly-as-much-risk-to-make-applications&quot;&gt;Other platforms don’t require nearly as much risk to make applications&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Twitter - Applying for a developer account requires detailed use-case information about how you plan to use their API, but no personal documents are needed&lt;/li&gt;
  &lt;li&gt;Twitch - [tbd]&lt;/li&gt;
  &lt;li&gt;GitHub - [tbd]&lt;/li&gt;
  &lt;li&gt;Reddit - [tbd]&lt;/li&gt;
  &lt;li&gt;Facebook - [tbd]&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;discord-shouldnt-need-this-information-to-prevent-abuse&quot;&gt;Discord shouldn’t need this information to prevent abuse&lt;/h3&gt;
&lt;p&gt;It’s well-known that spam-bots (and other malicious bots) plague Discord. Fake clones of GiveawayBot pop up weekly, spamming direct messages with things such as “get nitro for free by adding this bot to your server,” and then using those users’ naivety to spread to more users and more servers. A verified tick next to a well-known bot’s name, as well as limiting unverified bots to 100 servers, &lt;em&gt;does&lt;/em&gt; significantly help prevent this kind of thing. Additionally, verifying a bot locks its name, which prevents a bot being verified under a false pretense and then changing appearance to clone another bot. However, this kind of verification should not require sensitive documents from the bot developer. It should be possible to submit an application for verification (to be reviewed by a human) without risking identity theft.&lt;br /&gt;
Additionally, Discord is a modern company with full engineering and trust &amp;amp; safety teams; they should have the means to detect (and iterate their detection of) these extremely-common abuse patterns and stop them programatically. While I’m not claiming that preventing abuse is easy, Discord as a company should have enough resources to work towards preventing it rather than making a blanket rule that prevents anyone who doesn’t feel comfortable risking identity theft from hosting a public application.&lt;/p&gt;

&lt;h3 id=&quot;if-you-share-your-documents-you-are-at-risk-for-at-minimum-an-entire-year&quot;&gt;If you share your documents, you are at risk for at minimum an entire year&lt;/h3&gt;
&lt;p&gt;From the support article:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;How can I delete the information I’ve submitted?
[...] our retention policy is that we'll remove the identification information a year after the bot that it is connected with has been deleted.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;A lot of policies can change in a year. If Discord makes a change that you don’t agree with, even if you immediately delete your bot, you’d still have your identity available to unknown employees at the company for at least a year.&lt;/p&gt;

&lt;h3 id=&quot;summary&quot;&gt;Summary&lt;/h3&gt;
&lt;p&gt;The concept of human-reviewed verification is good, but requiring dangerous documents is unnecessary. Other platforms demonstrate examples of verification that don’t require risky behavior, and that abuse can be prevented effectively with these systems. Discord provides very little information about who can access your documents (and no information nor guarantees about the future), increasing the riskiness of sharing sensitive documents with the company.&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;update&quot;&gt;Update&lt;/h3&gt;
&lt;p&gt;Since originally writing this article, Discord reached out to me about the verification process, and we found a compromise that enabled me to verify my bots. Essentially, the only data that was needed was real name, birth date, and current address. While I’m sure that there are still many bot devs that feel that this is still too intrusive, this is certainly much better (from an identity theft standpoint) than providing unmodified scans of the raw documents. If you are in the situation where you are not comfortable sending the documents as-is, but are still comfortable with sharing the aforementioned info, consider reaching out to Discord support about this as an alternative verification method.&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="discord-bots" /><category term="development" /><summary type="html">A few months ago, Discord announced the bot verification system and requirements. Since then, they’ve also added a support article with more details about it. Unfortunately, the blog post does not discuss the implications of verification, and the support article only touches on it very briefly at the end.</summary></entry><entry><title type="html">Sending the results of Google Forms to Discord</title><link href="https://blog.jagrosh.com/discord/google-forms-to-discord/" rel="alternate" type="text/html" title="Sending the results of Google Forms to Discord" /><published>2020-06-25T00:00:00+00:00</published><updated>2020-06-25T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/google-forms-to-discord</id><content type="html" xml:base="https://blog.jagrosh.com/discord/google-forms-to-discord/">&lt;p&gt;Sending the results of a Google form right to a Discord channel is easy and free; all it takes is a bit of setup! Here is an overview of how to get started:&lt;/p&gt;

&lt;h1 id=&quot;1-create-a-google-form&quot;&gt;1. Create a Google form&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;For ease of editing the script later, it is recommended that the first question in the form ask for the user’s Discord ID.&lt;/li&gt;
  &lt;li&gt;Make sure to utilize optional questions when possible, as the script can detect when answers are blank and avoid wasting space in the message sent to Discord.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;2-open-the-script-editor&quot;&gt;2. Open the Script Editor&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Go to the ‘Responses’ tab&lt;/li&gt;
  &lt;li&gt;Select ‘View in Google Sheets’&lt;/li&gt;
  &lt;li&gt;In sheets, select Tools &amp;gt; Script editor&lt;/li&gt;
&lt;/ul&gt;

&lt;!--more--&gt;

&lt;h1 id=&quot;3-paste-the-following-script&quot;&gt;3. Paste the following script:&lt;/h1&gt;
&lt;div class=&quot;language-js highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;////////////////////////////////////////////////////////////////////////////&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// Instructions:                                                          //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// 1. Modify the webhook url and other variables below to suit your needs //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// 2. In the drop-down above, select 'initialize' and then run            //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// 3. Fill out your google form to see if it works                        //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// 4. Repeat step 2 any time you modify anything in this file             //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//                                                                        //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// Copyright 2020 jagrosh  |  Apache 2.0 License                          //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;////////////////////////////////////////////////////////////////////////////&lt;/span&gt;


&lt;span class=&quot;c1&quot;&gt;// this should be set to the URL that you want the form to post to&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;webhook&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;https://discordapp.com/api/webhooks/123456789012345678/wOahkTHX4daNiCewEbh00kUgOttheReiCtHaTYoUh4v3FoUndThIsS3crEToKyEah&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; 

&lt;span class=&quot;c1&quot;&gt;// specify which columns (0 = A) to exclude from the full responses list&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;skip&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// specify the content to appear above the embed (this example assumes column A is a timestamp and B is a user ID&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;headers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;Form submitted by `&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/`/gi&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; ` at `&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;`:&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;


&lt;span class=&quot;c1&quot;&gt;//////////////////////////////////////////////////////////////////////////////&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// DO NOT MODIFY THE FUNCTIONS BELOW HERE UNLESS YOU KNOW WHAT YOU'RE DOING //&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//////////////////////////////////////////////////////////////////////////////&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// run this once after making a change to the script&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;initialize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;triggers&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ScriptApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getProjectTriggers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;triggers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;ScriptApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;deleteTrigger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;triggers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]);&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;nx&quot;&gt;ScriptApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;newTrigger&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;sendToDiscordWebhook&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;forSpreadsheet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;SpreadsheetApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getActiveSpreadsheet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;onFormSubmit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// create and send the data from the row to discord&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;sendToDiscordWebhook&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;payload&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;constructPayload&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;options&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;contentType&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;application/json&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;payload&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;payload&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;response&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;UrlFetchApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;fetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;webhook&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// construct the content from the values&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;constructPayload&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headers&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;getColumnNames&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;fields&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[];&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;skip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;indexOf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!=-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]))&lt;/span&gt;
      &lt;span class=&quot;k&quot;&gt;continue&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;fields&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;inline&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;headers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;embeds&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[{&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;fields&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;fields&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// get column names from the spreadsheet&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;getColumnNames&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;sheet&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;SpreadsheetApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getActiveSheet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headerRow&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;sheet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getRange&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;1:1&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headerRowValues&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headerRow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getValues&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;headerRowValues&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// Copyright 2020 jagrosh&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h1 id=&quot;4-create-a-webhook-in-the-discord-channel-you-want-the-form-results-sent-to&quot;&gt;4. Create a webhook in the Discord channel you want the form results sent to&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;This can be found by opening the channel settings (⚙ icon) and going to Webhooks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;5-modify-the-specified-values-in-the-script&quot;&gt;5. Modify the specified values in the script&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Copy the webhook URL from the webhook you created into the script, replacing the example url.&lt;/li&gt;
  &lt;li&gt;Modify the skipped questions and output format, if desired.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;6-initialize-the-script&quot;&gt;6. Initialize the script&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Select ‘initialize’ from the drop-down menu titled ‘select function’&lt;/li&gt;
  &lt;li&gt;Click the ‘Run’ button (Triangular “play” button)&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;7-test-the-form&quot;&gt;7. Test the form&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Fill out and submit the form. The results should get relayed to the Discord channel.&lt;/li&gt;
&lt;/ul&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="guide" /><category term="google-forms" /><summary type="html">Sending the results of a Google form right to a Discord channel is easy and free; all it takes is a bit of setup! Here is an overview of how to get started: 1. Create a Google form For ease of editing the script later, it is recommended that the first question in the form ask for the user’s Discord ID. Make sure to utilize optional questions when possible, as the script can detect when answers are blank and avoid wasting space in the message sent to Discord. 2. Open the Script Editor Go to the ‘Responses’ tab Select ‘View in Google Sheets’ In sheets, select Tools &amp;gt; Script editor</summary></entry><entry><title type="html">Bot Concept: Accurate Leveling</title><link href="https://blog.jagrosh.com/discord/bot-concept-accurate-leveling/" rel="alternate" type="text/html" title="Bot Concept: Accurate Leveling" /><published>2019-02-26T00:00:00+00:00</published><updated>2019-02-26T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/bot-concept-accurate-leveling</id><content type="html" xml:base="https://blog.jagrosh.com/discord/bot-concept-accurate-leveling/">&lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt;
&lt;p&gt;I’ve discussed it &lt;a href=&quot;/discord/creating-and-growing-a-discord-server/#part-4-tips&quot;&gt;before&lt;/a&gt;, but I’m not a big fan of bots that give “levels” or “experience” for sending messages. The most common way of handling this is just to simply give a set (or slightly-varying) amount of points for sending a message. Sometimes there is a cooldown, sometimes there is a minimum message length, sometimes there is a max number of points per day or time period. However, all of these systems suffer from the same problem: &lt;em&gt;it encourages users simply to send messages, rather than contribute positively to conversations&lt;/em&gt;. I’m sure that some readers out there are thinking “yes, I want as much activity as possible,” but from my experience, &lt;strong&gt;not all activity is good activity&lt;/strong&gt;.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h2 id=&quot;goal&quot;&gt;Goal&lt;/h2&gt;
&lt;h3 id=&quot;do&quot;&gt;Do:&lt;/h3&gt;
&lt;p&gt;~ Encourage users to interact with the server&lt;br /&gt;
~ Encourage users to contribute to conversations with relevant questions and comments&lt;br /&gt;
~ Give proper representation to positive contributors on the server&lt;/p&gt;
&lt;h3 id=&quot;dont&quot;&gt;Don’t:&lt;/h3&gt;
&lt;p&gt;~ Encourage users to spam&lt;br /&gt;
~ Encourage users to say irrelevant or ‘filler’ messages&lt;br /&gt;
~ Encourage users to try to game/cheat the system&lt;br /&gt;
~ Interrupt conversations with “level-up” messages&lt;br /&gt;
~ Interrupt conversations with unecessary reactions or DMs&lt;br /&gt;
~ Require extra work/learning on the user’s part&lt;/p&gt;

&lt;h2 id=&quot;other-social-media&quot;&gt;Other Social Media&lt;/h2&gt;
&lt;p&gt;So, how do other social media services solve this problem? Well, let’s take a look at a few services that have a comparable problem, and see how they tackle it.&lt;/p&gt;
&lt;h3 id=&quot;reddit&quot;&gt;Reddit&lt;/h3&gt;
&lt;p&gt;While reddit doesn’t have the same structure to a normal chatroom, it &lt;em&gt;does&lt;/em&gt; have a good way of showing a user’s experience, in the form of karma. Karma is gained from users up-voting your messages, and lost from users down-voting your messages (below zero). This becomes a fairly accurate representation of contribution, as meaningful contributions will likely get up-voted and gain karma, while pointless contributions or spam will result in the loss of karma. Additionally, it becomes more valuable to provide useful replies than it does to provide many meaningless replies. In short, karma is a good measure of quality over quantity.&lt;br /&gt;
  Of course, there are flaws to this system as well. For example, the karma system relies on the fact that every message has its own vote counter, which is not very feasible for (and would be obtrusive to) conversations in Discord. Even if some sort of reaction system were used, it would still require extra work by the end users, and they would need to learn how to use this system.&lt;/p&gt;
&lt;h3 id=&quot;facebook-twitter-and-lots-more&quot;&gt;Facebook, Twitter, and lots more&lt;/h3&gt;
&lt;p&gt;Facebook and Twitter both feature a similar system to Reddit: they provide the ability to “like” messages and posts. These two also provide a “share” (or “retweet”) functionality to further promote specific messages. Users can “follow” other users to see more posts by those users, which provides a decent metric of who contributes to the site.
  This system requires even more input from users than Reddit, as not only do people need to like/share individual posts, but they need to follow other users to produce the contribution score. This is not very applicable to a chatroom format with conversations.&lt;/p&gt;
&lt;h3 id=&quot;league-of-legends&quot;&gt;League of Legends&lt;/h3&gt;
&lt;p&gt;I know what you’re thinking: “League of Legends isn’t even social media, it’s a game!” That’s true, but it does have a contribution system worth discussing. At the end of every match, each player is presented with a prompt to award ‘honor’ to one player on their team (or to nobody). This is nonintrusive during the game, yet still provides a decent indicator of who was friendly and cooperative during the match. Players are incentivized to be pleasant because players that receive a lot of honor get additional badges on their profile (and also because - in general - friendly, cooperative players are more likely to have better teamwork and thus win more).&lt;br /&gt;
  Again, there are issues with this system as well. League of Legends has strongly-defined matches; there is a clear difference between being in a match and being in the post-match lobby. Conversations don’t always have as clear of a structure, as particular participants may drop out of a conversation at any point, new participants can join at any point, and conversations can slowly change topic over time without any ‘end.’&lt;/p&gt;
&lt;h3 id=&quot;stackexchange&quot;&gt;StackExchange&lt;/h3&gt;
&lt;p&gt;Calling StackExchange/StackOverflow a ‘social media’ is a bit of a stretch, but the system used is still related. On SE, users have a reputation score that increases when they perform certain actions (asking or answering questions), and when their questions or answers get upvoted. Additionally, there are badges that users can receive for various actions, such as having a top-voted answer. Having more reputation builds power on the site; minimum reputation thresholds are needed for certain actions (commenting, marking as duplicate, deleting, etc) which helps protect the system from spam and people trying to cheat the system. A combination of reputation and badges is a good indicator of a user’s contributions to the site.
  Unfortunately, this system can’t be “ported” to Discord, as it works for the question-answer format, not the open chat-room format. Additionally, similar to Reddit, each message would need its own vote-counter to accurately reflect which messages are useful.&lt;/p&gt;

&lt;h2 id=&quot;my-solution&quot;&gt;My Solution&lt;/h2&gt;
&lt;p&gt;Drawing from things that the provided examples have in common, I’ve determined some elements that should be present in a solution.&lt;/p&gt;
&lt;h3 id=&quot;discrete-divisions-of-conversation&quot;&gt;Discrete Divisions of Conversation&lt;/h3&gt;
&lt;p&gt;The first step in the solution is to divide the ongoing conversation into meaningful chunks. This immediately raises a few issues. Conversations can last for very long periods of time, with the participating members changing throughout. Just because someone starts talking about a topic doesn’t mean that they will be active for the entire duration that people are talking about it. Also, conversations can change topics over time, and detecting when the topic has changed is a very difficult thing to tell, especially for a bot.&lt;br /&gt;
  So, instead of trying to break the entire conversation up into chunks, we can split it by each user. When a user sends their first message in a conversation, the bot considers the user to be “active” in the conversation. When they have not sent a message (or been “typing”) for more than 10 minutes, the bot will consider them “inactive,” and then review their contribution to the conversation while they were active.&lt;br /&gt;
  This solves a few of the goals. Namely, it prevents interrupting the conversation, as it only sends the user notifications &lt;em&gt;after&lt;/em&gt; they have finished participating.&lt;/p&gt;
&lt;h3 id=&quot;message-counting&quot;&gt;Message Counting&lt;/h3&gt;
&lt;p&gt;At some point, we need to take into consideration how much a person has typed. As already stated, just looking at number of messages sent or length of messages is a poor indication of contribution, but we can use it as a starting point. Specifically, we can look directly at the number of characters they sent, with a few caveats:&lt;br /&gt;
~ Emotes, pings, and channel/role mentions get shortened to their visible text. These things contain IDs that take up 17-20 characters, but aren’t actually typed by the user nor are representative of what the user typed.&lt;br /&gt;
~ Some math: the average typing speed is around 40 words per minute. The average typing speed of a user on Discord is likely a bit higher than that, so we’ll go with 60 wpm to be safe. The average length of a word is between 4 and 5 characters (varies by language), usually closer to 5. With a space between every word, we’re looking at around 6 characters “per word” and 60 words per minute, or 360 characters typed per minute. Of course, since this is a conversation, we’d expect any single user to provide only one-half of the conversation, or less, leaving us at 180 characters per minute. We’ll bump that up to 200 characters (to account for edge-cases and the occasional copy-paste) as our upper-limit for how many characters a single user should be able to type when participating in a conversation.&lt;br /&gt;
~ Next, we want deleted messages to count &lt;em&gt;against&lt;/em&gt; the total. Whether a message is deleted by a mod or by the user, it likely means that it did not contribute to the conversation, so deleted messages will subtract characters from the total, with an additional 10% taken off. So, if a user sent 3 100-character messages, and deleted one of them, their total would be 300 - (100 * 1.1) = 300 - 110 = 190. (Note: if these 3 messages all happened within 1 minute, using our previous cap would limit the starting number to 200, and then after the subtraction would leave the user at 90).&lt;br /&gt;
~ Finally, a flat amount should be subtracted from every message. This is to subtlely discourage people from breaking up their thoughts into a lot of small messages. This could be 5 or 10 characters per message (one or two words).&lt;br /&gt;
[Sidenote: These numbers and times are estimates and would need to be tested and tweaked if this bot were to actually be developed.]&lt;/p&gt;
&lt;h3 id=&quot;end-of-conversation-review&quot;&gt;End of Conversation Review&lt;/h3&gt;
&lt;p&gt;Alright, so we have a user’s messages from a conversation, as well as the time they joined (became active) and left (became inactive). We also have a character-count score for what they typed. What next? Well, we’ll want some minimum contribution required to be able to gain “points,” such as at least 2 messages and at least 50 characters. If a person reached this threshhold, when they are considered “inactive,” the bot will internally award them points for the number of characters typed (after the changes listed in the Message Counting section). If they received some incentive (more on this later), they will receive a DM explaining what they have received.&lt;br /&gt;
  Also, either randomly, or dependent on the amount they contributed, they will be sent a DM with a poll, asking them about the other people they conversed with. They will be given the option to select one other user (or nobody) that they believe contributed positively to the conversation. If they do, both them and the other user will receive bonus points for their effort. This poll can also be ignored with no negative side-effects to earned points, but will reduce the chance of getting such a poll in the future.&lt;/p&gt;
&lt;h3 id=&quot;incentives&quot;&gt;Incentives&lt;/h3&gt;
&lt;p&gt;Why should people even try to gain points? The administrators of a server should be able to set incentives at certain point levels, such as:&lt;br /&gt;
~ Access to more channels&lt;br /&gt;
~ Colored roles&lt;br /&gt;
~ Hoisted roles&lt;br /&gt;
~ Roles with additional Discord permissions (External Emojis, Upload Files)  &lt;br /&gt;
Some other “custom” incentives might be:&lt;br /&gt;
~ Ability to vote on message deletion (if X many people with this “permission” add a trash-can emoji to a message, delete the message)&lt;br /&gt;
~ Ability to “rep” other users once to give them a point multiplier&lt;/p&gt;
&lt;h3 id=&quot;self-moderation&quot;&gt;Self-Moderation&lt;/h3&gt;
&lt;p&gt;Something that this entire system relies on is that non-contributing messages need to get deleted. Mostly, this can be handled by the moderators and auto-mod bots, but I would strongly-encourage (or require) that the ability to vote on message delete (outlined in Incentives above) be available to users of a certain point count.&lt;/p&gt;
&lt;h3 id=&quot;tldr&quot;&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;Basically:&lt;br /&gt;
~ Break ‘conversations’ up per-user, and do calculation once a user has stopped participating&lt;br /&gt;
~ Count characters sent to determine points, with minimums, maximums, and other requirements. Use these character restrictions to value quality over quantity (like Reddit)&lt;br /&gt;
~ Offer incentives for reaching certain point counts&lt;br /&gt;
~ Occasionally give a survey after a conversation for bonuses (like League of Legends)&lt;br /&gt;
~ With enough points, allow user-based moderation to make sure pointless messages get deleted (like StackExchange)&lt;/p&gt;

&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
&lt;h3 id=&quot;do-i-think-this-is-a-perfect-system&quot;&gt;Do I think this is a perfect system?&lt;/h3&gt;
&lt;p&gt;No. This is far from perfect, and I’m not even sure a perfect system exists. More importantly, even if this type of bot did exist, I’m not sure it would actually achieve the goals I listed earlier; it might do a bit better than the current “level bots,” but I don’t know if it would help produce more real, meaningful conversation. If you have ideas for how to improve this system, please leave a comment with your ideas!&lt;/p&gt;
&lt;h3 id=&quot;am-i-going-to-make-this-bot&quot;&gt;Am I going to make this bot?&lt;/h3&gt;
&lt;p&gt;Probably not. I might test something similar on a server at some point, but I don’t see myself making any kind of public version of this. I have enough bots to work on, and I’m still not completely satisfied with the solution I’ve come up with.&lt;/p&gt;
&lt;h3 id=&quot;can-you-use-these-ideas-in-your-own-bot&quot;&gt;Can you use these ideas in your own bot?&lt;/h3&gt;
&lt;p&gt;Go for it! If you like what you’ve read here and decide to use it, please give me credit for any ideas you use, and &lt;a href=&quot;https://invite.gg/jagrosh&quot;&gt;come tell me about it&lt;/a&gt;! I’d love to see someone solve this problem!&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="discord-bots" /><category term="development" /><category term="concept" /><summary type="html">Motivation I’ve discussed it before, but I’m not a big fan of bots that give “levels” or “experience” for sending messages. The most common way of handling this is just to simply give a set (or slightly-varying) amount of points for sending a message. Sometimes there is a cooldown, sometimes there is a minimum message length, sometimes there is a max number of points per day or time period. However, all of these systems suffer from the same problem: it encourages users simply to send messages, rather than contribute positively to conversations. I’m sure that some readers out there are thinking “yes, I want as much activity as possible,” but from my experience, not all activity is good activity.</summary></entry><entry><title type="html">Vortex 2.0</title><link href="https://blog.jagrosh.com/discord/vortex-2-0/" rel="alternate" type="text/html" title="Vortex 2.0" /><published>2018-04-24T00:00:00+00:00</published><updated>2018-04-24T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/vortex-2-0</id><content type="html" xml:base="https://blog.jagrosh.com/discord/vortex-2-0/">&lt;p&gt;Welp. It’s finally here.&lt;/p&gt;

&lt;p&gt;A few months ago I decided to rewrite (or, mostly rewrite) my Discord moderation bot, Vortex. It wasn’t so much that there was anything wrong with it, but rather it just was sub-par compared to the potential it had. Vortex was originally built to fit very specific needs; namely banning mass-mention spammers and deleting advertisements. However, it lacked a lot of features that were present in another bot of mine, Spectra, as well as plenty of other moderation bots. Its logs were minimal (only the bot’s actions and the bot’s command usage), and the moderation commands were simplistic as well. In short, while it fits the niche needs at the time, it was far from being a complete and standalone moderation tool.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;Going into the rewrite, I had a clear goal: Vortex should be the only moderation bot a server needs. This meant adding a lot of features (including a lot of features that I had previously written or designed for other bots) such as message logs, reason-able moderation logs, server logs, custom prefix, and more forms of automatic moderation. My two years of Discord server moderation helped build a knowledge-base of what tools are useful, and what kinds of configuration are needed to be flexible for different servers.&lt;/p&gt;

&lt;p&gt;One of the biggest hurdles in redesigning the automod was the punishment system. In the original bot, each form of automod (max-mentions, advertisement prevention, etc) had its own punishment. Unfortunately, this made things somewhat ugly on the backend (it took a lot more code to add a new feature) as well as meant the bot as a whole had a lack of cohesiveness. The solution that I decided on was a strike system: each form of automod would assign a configurable number of strikes, and punishments could be assigned to certain strike counts. For example, a server might decide on a “3 strikes you’re out” system, where 1 strike was simply the strike as a warning, 2 strikes was a kick, and 3 strikes was a ban. They might decide that posting advertisement constitutes 1 strike, whereas posting a referral link is 2 strikes. This example is just one of a huge number of possibilities that can be tailored to each individual server.&lt;/p&gt;

&lt;p&gt;Yesterday, I completed the transition to move all of these new changes onto the old bot, and luckily, everything went smoothly: no major errors, and the old settings transformation was clean as well. There’s still more features I want to add, and a few minor (quality-of-life) things I want to fix here and there, but overall I think that it’s pretty solid! If you’re interested in checking out Vortex for yourself, you can take a look at the wiki &lt;a href=&quot;https://github.com/jagrosh/Vortex/wiki&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="discord-bots" /><category term="vortex" /><category term="moderation" /><category term="development" /><summary type="html">Welp. It’s finally here. A few months ago I decided to rewrite (or, mostly rewrite) my Discord moderation bot, Vortex. It wasn’t so much that there was anything wrong with it, but rather it just was sub-par compared to the potential it had. Vortex was originally built to fit very specific needs; namely banning mass-mention spammers and deleting advertisements. However, it lacked a lot of features that were present in another bot of mine, Spectra, as well as plenty of other moderation bots. Its logs were minimal (only the bot’s actions and the bot’s command usage), and the moderation commands were simplistic as well. In short, while it fits the niche needs at the time, it was far from being a complete and standalone moderation tool.</summary></entry><entry><title type="html">PSA: Sending Invites to Random People Breaks Discord’s Terms of Service</title><link href="https://blog.jagrosh.com/discord/psa-sending-invites-to-random-people/" rel="alternate" type="text/html" title="PSA: Sending Invites to Random People Breaks Discord’s Terms of Service" /><published>2018-04-15T00:00:00+00:00</published><updated>2018-04-15T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/psa-sending-invites-to-random-people</id><content type="html" xml:base="https://blog.jagrosh.com/discord/psa-sending-invites-to-random-people/">&lt;p&gt;Ask any moderator of a large server, and they’ll tell you that easily one of the toughest things to track down, and one of the most rampant issues, is getting rid of users that advertise in Direct Messages. And possibly the worse part: a lot of these users don’t realize that doing this is breaking the terms of service.&lt;/p&gt;

&lt;!--more--&gt;

&lt;p&gt;Let’s break it down. First, if you haven’t read the terms of service, I’d highly suggest reading it here: https://discordapp.com/terms. Specifically, let’s look at a one line copied directly from the ToS:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;You agree that your use of the Service will not include sending unsolicited marketing messages or broadcasts (i.e., spam).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Next, a few definitions:&lt;/p&gt;

&lt;p&gt;Unsolicited&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;not asked for; given or done voluntarily.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Marketing&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;the action or business of promoting and selling products or services, including market research and advertising.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This means that if you send a message that promotes or advertises anything (yes, including a Discord server), and the other person didn’t ask for it, you’re breaking the Terms of Service. So, if you’re sending invites to random people (or servers for that matter) that haven’t asked for an invite, it’s breaking the Terms of Service.&lt;/p&gt;

&lt;p&gt;If you see someone sending an unsolicited marketing message, it is highly encouraged that you submit a report to https://dis.gd/contact with the user’s ID and the ID of the message they sent. You can find these IDs by enabling Developer Mode in your appearance settings and then right clicking their username (for their user ID) and the message (for the message ID).&lt;/p&gt;

&lt;p&gt;Finally, yes, this is a repost of my original reddit post, which can be found &lt;a href=&quot;https://www.reddit.com/r/discordapp/comments/7j3x2s/psa_sending_invites_to_random_people_breaks_the/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="psa" /><category term="discord" /><category term="tos" /><summary type="html">Ask any moderator of a large server, and they’ll tell you that easily one of the toughest things to track down, and one of the most rampant issues, is getting rid of users that advertise in Direct Messages. And possibly the worse part: a lot of these users don’t realize that doing this is breaking the terms of service.</summary></entry><entry><title type="html">Creating and Growing a Discord Server</title><link href="https://blog.jagrosh.com/discord/creating-and-growing-a-discord-server/" rel="alternate" type="text/html" title="Creating and Growing a Discord Server" /><published>2018-04-14T00:00:00+00:00</published><updated>2018-04-14T00:00:00+00:00</updated><id>https://blog.jagrosh.com/discord/creating-and-growing-a-discord-server</id><content type="html" xml:base="https://blog.jagrosh.com/discord/creating-and-growing-a-discord-server/">&lt;blockquote&gt;
  &lt;p&gt;This guide is kept up-to-date as Discord and available resources change!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;creating-and-growing-a-discord-server&quot;&gt;Creating and Growing a Discord Server&lt;/h1&gt;
&lt;p&gt;&lt;img src=&quot;https://discordapp.com/assets/fc0b01fe10a0b8c602fb0106d8189d9b.png&quot; alt=&quot;logo&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Hello! I’m jagrosh#4824! I’m writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It’s very easy to go about this the wrong way, so it’s best to be prepared and make smart decisions so that your community can flourish!&lt;/p&gt;

&lt;h2 id=&quot;background&quot;&gt;Background&lt;/h2&gt;
&lt;p&gt;You might be wondering: why am I qualified to write this guide? Excellent question! Well, I’ve created several successful Discord servers, including the Monster Hunter Gathering Hall (70,000+ members, game community), a bot support server (7,500+ members), and two bot community servers (25,000+ members and 20,000+ members). I also help moderate several large servers, and I am a Discord partner. Finally, I am very familiar with the technical aspects of Discord, which are useful for setting up servers and permissions.&lt;/p&gt;

&lt;!--more--&gt;

&lt;h1 id=&quot;part-1-should-i-make-a-server&quot;&gt;Part 1: Should I make a server?&lt;/h1&gt;
&lt;p&gt;This is an important question. Just because you &lt;em&gt;can&lt;/em&gt; make a server doesn’t mean you &lt;em&gt;should&lt;/em&gt;. When you’re making your server, make sure to ask yourself these questions:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Is this something that you are passionate about?&lt;/strong&gt; Don’t make a server just for the sake of making one. You should be highly interested in the topic and want to improve the community for that topic. You should also be knowledgible about the topic and able to help newcomers and experienced members alike.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Does this server have one specific topic?&lt;/strong&gt; If your server is a “generic gaming server” or “generic public server” or “random server” or “memes” or any variation, then it is not going to grow. Frankly, no one is interested in joining a server that doesn’t have a defined topic. If you take a look at the biggest and most-popular servers on Discord, they all have a specific topic, like “Overwatch” or “World of Warcraft Druids” or “Discord API”. If you want your server to become popular, you &lt;em&gt;must&lt;/em&gt; pick a specific topic.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Do any other servers for this topic exist?&lt;/strong&gt; Once you’ve decided on a topic, you need to figure out if a server for that topic already exists. For example, don’t make a server about “League of Legends,” because one already exists. &lt;strong&gt;If a server for your topic already exists, you should join the existing server and contribute to the existing community instead of trying to create a new server for the exact same topic!&lt;/strong&gt; However, it’s possible that there doesn’t exist a server for “League of Legends Demacia Lore,” so that would be a perfectly-fine topic to create a server for. (If you don’t know if a server already exists, see the “Resources” section at the bottom of this document)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Does the topic benefit from having a Discord server?&lt;/strong&gt; For some topics, there is no benefit to having a Discord server. Discord is great for real-time communication via text and voice. Make sure that the topic is one that can be discussed in these ways.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Do you need to own the server?&lt;/strong&gt; This is probably the most important question. Obviously, you’re here because you want to set up a server, advertise it, and grow a community. The question is, would you be willing to give ownership and all permissions to someone else if it meant that the community would grow better? If you would not be willing to give ownership to improve the community, you need to stop reading this guide right now and delete the server. Servers aren’t things to “show off” because they are popular; they are communities of &lt;em&gt;real people&lt;/em&gt; that want to communicate, and you need to care more about that community than about who “owns” the  server itself. This is something you &lt;em&gt;must&lt;/em&gt; accept if you want to create a community: that if the community would do better without you, you need to be able to give it up to someone who will perform better.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’ve answered these questions according to the guidelines, you’re ready to start setting up the server!&lt;/p&gt;

&lt;h1 id=&quot;part-2-setting-up-the-server&quot;&gt;Part 2: Setting up the server&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;This section is still in-progress and should just be used as a basic guide&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;channels&quot;&gt;Channels&lt;/h2&gt;
&lt;p&gt;The key to good channel structure is keeping important information easy to find, and categorizing everything as appropriate. An example of a structure for a “Minecraft Redstone” server might be:&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; ⌵ Information
   # rules
   # announcements
   # contests
 ⌵ General
   # lobby
   # off-topic
   🔊 Voice
 ⌵ Projects
   # survival_redstone
   # creative_redstone
   # command_blocks
   # map_sharing
 ⌵ Mods
   # mod_chat
   # mod_log
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tips:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Channel Order&lt;/strong&gt; - Keep the ‘rules’ or ‘info’ channels near the top; remember that when someone first joins the server, they’ll see whatever the first visible channel is (unless the invite they join points somewhere else)!&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Invites&lt;/strong&gt; - I normally don’t give people the ‘Create Instant Invite’ permission via role, and instead create a manual override allowing it only for the ‘rules’ channel. This means that if someone wants to invite their friend to the server, the friend will see the rules channel first!&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;NSFW Channels&lt;/strong&gt; - A good rule of thumb is: don’t. There &lt;em&gt;is&lt;/em&gt; a reason why you might want to create a NSFW channel, and that reason is if the core topic of the server has a NSFW component. For example, some television shows have scenes that might be not appropriate for underage viewers; a NSFW channel would be useful for discussions about these scenes. &lt;em&gt;Don’t make a NSFW channel if it doesn’t relate specifically to the server&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;roles&quot;&gt;Roles&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;“Member” Roles&lt;/strong&gt; - “Member” roles (or equivalent) can be useful if you want members to agree to a set of rules (usually via a bot command) or if you want to check out people before manually giving them the role and letting them join the server. &lt;em&gt;DO NOT&lt;/em&gt; have a bot give every single new member a role right when they join. Why? Giving everyone a role prevents some of Discord’s useful features from being possible. The most important is the Verification Level. For large servers, it is important to make sure that all users have verified accounts (linked an e-mail to their account) to avoid spam and raids. However, the server’s Verification Level does not apply to anyone with a role, so if you give everyone a role when they join, you are essentially setting your server Verification Level to “None” and leaving yourself wide open to all kinds of attacks. Additionally, the “Prune Members” feature becomes useless as you cannot prune members with roles.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Staff/Mod Roles&lt;/strong&gt; - I often find it useful to have a colorless role that is given to all Staff (regardless of what kind of staff) to keep the sidebar more organized (I make sure the “Display role members separately from online members” is checked for ‘Staff’ and unchecked for the other roles). Then, each type of staff has a role with a name and color corresponding to the type of staff they are (Moderator, Event Manager, etc).&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Bot Roles&lt;/strong&gt; - &lt;em&gt;Never give bots more permissions than they need!!&lt;/em&gt; This is extremely important and a mistake that a lot of people make. Remember, if you give a bot a permission, you are effectively giving that permission to &lt;em&gt;anyone&lt;/em&gt; with the bot’s token. Usually this is just the owner of the bot, but if they are careless and leak their token, it could be anyone. Most bot invite links come with a preset list of permissions, but if you want to add the bot without giving any permissions right away (and giving the permissions manually later), you can remove the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;amp;permissions=NUMBERS&lt;/code&gt; section of the invite link.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;part-3-advertising&quot;&gt;Part 3: Advertising&lt;/h1&gt;
&lt;p&gt;First of all, I’d like to describe what I mean by advertising. I &lt;em&gt;don’t&lt;/em&gt; mean trying to get random users to join your server. I know that a lot of people are desparate to increase their member count, but quality is always more important than quantity. You only want people to join if they are actually interested in the server. This will lead to continued success and high-quality discussion. When I discuss advertising, the goal is to make it so that people who are looking for a server about your topic will be able to easily find your server!&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Listing Sites&lt;/strong&gt; - Check out the resources at the bottom of this guide; there are a few server listing sites that I highly recommend. These sites have been curated due to their SEO (search-engine optimization) and ability to lead interested users to the right servers for specific topics.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;External Outreach&lt;/strong&gt; - Look for subreddits/forums/other resources that share the same topic as your Discord server. Make sure to let users know that you’ve created a Discord server all about the topic that they enjoy! (Make sure to do this politely though; nobody likes someone spamming links!). Depending on the responses, you might need to make some changes on your server if you want the external communities to support you. Do it! It’s very important to get the current communities for the topic involved!&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Don’t spam your invite link on random Discord servers!&lt;/strong&gt; - This is &lt;em&gt;extremely&lt;/em&gt; important. If you just ask random people to join, and they aren’t interested in the topic, there is a high chance they will either a) leave or b) troll. You don’t want either of these. What you want is for all (or at least most) of your new members to be people that actually care about the topic. Don’t be discouraged if it grows slowly at first! It’s better to have 10 members that care than 1,000 members that don’t.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Get Involved with your own server&lt;/strong&gt; - Don’t step out of the community to try to fill an “owner” role. Just be part of the community, because &lt;em&gt;the best and most reliable source of advertising is people telling their friends&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;part-4-tips&quot;&gt;Part 4: Tips&lt;/h1&gt;
&lt;p&gt;These are just some generic tips that usually correlate with success.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Don’t separate the “Owner” in the member sidebar.&lt;/strong&gt; Usually, a role should only be “displayed separately” or “hoisted” if people need to be able to easily see who is in that role. For example, it’s usually good to hoist “Moderators” so that someone can easily ping them if needed. However, hoisting roles like “Owner” just looks narcisistic.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Don’t use any kind of “levels” or “exp” system.&lt;/strong&gt; Don’t give points or award roles for chatting. This is the quickest and easiest way to drown out any real conversation. People are much more engaged in a community if every who is talking is talking because they are interested in the server, not just because they want points. If you are having trouble keeping people engaged, hold events that relate to the topic!&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Only have as many moderators as the server needs.&lt;/strong&gt; It might be tempting to start adding a bunch of moderators as soon as there is some activity, or as soon as the first bad thing happens, but don’t be too quick. Make sure that you completely and fully trust your moderators before adding them, and don’t add too many. Early on, you probably only need one or two mods just to make sure that you have all timezones covered. A decent estimate for moderator counts is 1 mod per 1000 members, and 1 admin per 10 mods. This varies a &lt;em&gt;lot&lt;/em&gt; based on the nature of the server of course.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Do not advertise to random people, nor on random servers, nor reward people for inviting friends.&lt;/strong&gt; Unsolicited advertising breaks Discord’s &lt;a href=&quot;https://discordapp.com/terms&quot;&gt;Terms of Service&lt;/a&gt;, so if you send random invites, or even have a system that encourages people to do that, you’re breaking the ToS and your server and/or account could be shut down! Follow the rules!&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Think about why &lt;em&gt;YOU&lt;/em&gt; would want to join a server.&lt;/strong&gt; Don’t follow certain practices or add certain things just because you saw someone else do it, do things because they make your server something you want to be a part of! This is something that so many servers mess up; they add bots or certain channels just because they saw another server with them and not because it actually makes the server more enjoyable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;resources&quot;&gt;Resources&lt;/h1&gt;
&lt;h2 id=&quot;server-listing-websites&quot;&gt;Server Listing Websites&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;https://invite.gg&lt;/strong&gt; - This site is great for getting a customized invite link that can easily distinguish your server.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;https://www.discordservers.com/&lt;/strong&gt; - This is likely the most popular listing site, and allows you to provide a small description about your server. This is very useful when people are searching for the topic of your server.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;https://www.carbonitex.net/discord/servers&lt;/strong&gt; - Carbonitex is great for keeping various stats about your server, including members, activity, and messages. The list here is also often used to rank servers by member count.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;moderationmanagement-bots&quot;&gt;Moderation/Management Bots&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;blargbot&lt;/strong&gt; - http://blargbot.xyz/ - This bot can be used to customize your server in almost any way you can imagine. It has a strong custom command implementation that lets you make whatever commands your server is going to need. It can log messages and record moderation actions, and even have some basic automoderation if needed.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Vortex&lt;/strong&gt; - https://github.com/jagrosh/Vortex/wiki - This is a basic moderation and auto-moderation bot. It doesn’t require any setup for the basic commands (using native Discord permissions for its checks), and it’s easy to set up some basic auto-moderation for preventing spam, advertisements, and raids.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Auttaja&lt;/strong&gt; - https://auttaja.io/ - Commonly used for it’s ‘gatekeeper’ functionality, which can help with mitigating problem-users from entering your server in the first place.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;utilityinformation-bots&quot;&gt;Utility/Information Bots&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;spoo.py&lt;/strong&gt; - https://bots.discord.pw/bots/109379894718234624 - spoo.py is great for keeping tabs on members. It can remember what names members used to have, when they were last online, and more.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Logger&lt;/strong&gt; - https://discord.bots.gg/bots/298822483060981760 - Logger has the capability to log pretty much anything you’d want to in a consistent format.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;blargbot&lt;/strong&gt; - http://blargbot.xyz/ - Similar to its moderation capabilities, it can be used to provide information to your users. You can make it announce joins or leaves, or make tags for common topics.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;R. Danny&lt;/strong&gt; - https://discord.bots.gg/bots/80528701850124288 - Lots of utilities such as tags &amp;amp; reminders; consider this an alternative option for some of the bots already listed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;game-bots&quot;&gt;Game Bots&lt;/h2&gt;
&lt;p&gt;Probably not a good idea. You don’t need any game bots. Please don’t use bots as a means to increase server activity. These bots can be lots of fun, but they are almost never related to the topic of the server.&lt;/p&gt;

&lt;h2 id=&quot;bot-sites&quot;&gt;Bot Sites&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;https://discord.bots.gg/&lt;/strong&gt; - The original bot list. A diverse directory of Discord bots. This site lists almost all publically-hosted bots.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;https://www.carbonitex.net/discord/bots&lt;/strong&gt; - Carbonitex features many bots that have been determined to meet a certain quality standard.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;other-guides&quot;&gt;Other Guides&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Discord Project&lt;/strong&gt; - https://discordapp.com/invite/project - Useful resources for some technical aspects of Discord.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Creating a Discord Server&lt;/strong&gt; - https://thelatestdiscord.wordpress.com/2018/08/12/creating-a-discord-server/ - Technical guide for how to set up a Discord server, with images!&lt;/li&gt;
&lt;/ul&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Discord" /><category term="discord" /><category term="guide" /><category term="discord-bots" /><summary type="html">This guide is kept up-to-date as Discord and available resources change! Creating and Growing a Discord Server Introduction Hello! I’m jagrosh#4824! I’m writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It’s very easy to go about this the wrong way, so it’s best to be prepared and make smart decisions so that your community can flourish! Background You might be wondering: why am I qualified to write this guide? Excellent question! Well, I’ve created several successful Discord servers, including the Monster Hunter Gathering Hall (70,000+ members, game community), a bot support server (7,500+ members), and two bot community servers (25,000+ members and 20,000+ members). I also help moderate several large servers, and I am a Discord partner. Finally, I am very familiar with the technical aspects of Discord, which are useful for setting up servers and permissions.</summary></entry><entry><title type="html">Hello World!</title><link href="https://blog.jagrosh.com/random/hello-world/" rel="alternate" type="text/html" title="Hello World!" /><published>2018-04-13T00:00:00+00:00</published><updated>2018-04-13T00:00:00+00:00</updated><id>https://blog.jagrosh.com/random/hello-world</id><content type="html" xml:base="https://blog.jagrosh.com/random/hello-world/">&lt;p&gt;Hey there! Thanks for reading what I have to say.&lt;/p&gt;</content><author><name>John Grosh</name><email>j@gro.sh</email></author><category term="Random" /><category term="random" /><category term="hello" /><category term="world" /><summary type="html">Hey there! Thanks for reading what I have to say.</summary></entry></feed>