<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Achraf Dev on Medium]]></title>
        <description><![CDATA[Stories by Achraf Dev on Medium]]></description>
        <link>https://medium.com/@achrafdev?source=rss-ae427eae8609------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3L6PqtNFX8UmuO6x43JMlQ.png</url>
            <title>Stories by Achraf Dev on Medium</title>
            <link>https://medium.com/@achrafdev?source=rss-ae427eae8609------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:57:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@achrafdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I created a discord bot in 5 mins]]></title>
            <link>https://medium.com/@achrafdev/how-i-created-a-discord-bot-in-5-mins-ab64bfca7f81?source=rss-ae427eae8609------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab64bfca7f81</guid>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Achraf Dev]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 01:21:15 GMT</pubDate>
            <atom:updated>2022-07-07T01:28:34.446Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tips to get you started with building discord bots</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NytIMK8GNbvqs41itgi5pw.jpeg" /><figcaption>Discord picture by <a href="https://unsplash.com/@elladon?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">ELLA DON</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>This is a quick tutorial on how to set up a discord bot in the <a href="https://discord.com/developers/applications">discord developer portal</a>, so let’s get started!</p><h3>1. Create a new application</h3><p>Go to discord’s developers portal <a href="https://discord.com/developers/applications">here</a>, and create a new application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1TDclPMFziVrKWMDZL08dQ.jpeg" /><figcaption>Image by Author — create a new application</figcaption></figure><h3>2. General information</h3><p>After creating the app, go to the “General Information” tab and fill in some information about your bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Grs_Dk_I90J7t3r6AP8Ytw.png" /><figcaption>Image by Author — general information</figcaption></figure><h3>3. Saving your token</h3><p>Then go to the “Bot” tab, and save the token of your bot in a secure environment, such as a .env file for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8ZJna-V5cKuo9WUEE8MZw.png" /><figcaption>Image by Author — saving your token</figcaption></figure><h3>5. Setting permissions</h3><p>Now is the right time to set permissions to your bot. You will receive a permissions integer that we’ll use to authenticate our bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5tl8rjwY2j_EzaYEp8JQQ.png" /><figcaption>Image by Author — setting permissions</figcaption></figure><h3>6. Authenticating the bot</h3><p>Go back to the “OAuth2” tab and copy the client ID of your application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-MyMlK4R_uVXsNG6swuZA.png" /><figcaption>Image by Author — authenticating the bot</figcaption></figure><p>Finally, use the permissions integer from earlier and the client ID to visit this link:</p><pre>https://discord.com/oauth2/authorize?client_id=&lt;your_clientID&gt;&amp;scope=bot&amp;permissions=&lt;your_integer&gt;</pre><p>You will then get redirected to this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G05YGc1DD8Pyr4pznlKVqg.png" /><figcaption>Image by Author — authenticating the bot</figcaption></figure><h4>Wrap Up</h4><p>Congratulations, you’ve successfully registered your first discord bot!</p><p>I’m currently writing another article to show you how to add functionality to your bot, using node.js and the discord.js npm package.</p><p>It will feature commands, embeds, listeners, and much more. Stay tuned!</p><h4>Socials</h4><p>If you have any questions or suggestions, feel free to reach out on my socials:</p><p><a href="https://www.achrafdev.com/">htps://achrafdev.com</a></p><p><a href="https://github.com/NightClover-code/">https://github.com/NightClover-code</a></p><p><a href="https://linkedin.com/in/achraf-elmouhib-583563200/">https://linkedin.com/in/achraf-elmouhib-583563200/</a></p><h4>Have you liked this article? Be sure to share it on social networks. Thanks for reading!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab64bfca7f81" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>