<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ekcum</title>
    <description>The latest articles on DEV Community by Ekcum (@stevenandmanyzerooss).</description>
    <link>https://dev.to/stevenandmanyzerooss</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1287978%2F841dc873-778c-4641-aa7a-339d8faf38f1.png</url>
      <title>DEV Community: Ekcum</title>
      <link>https://dev.to/stevenandmanyzerooss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stevenandmanyzerooss"/>
    <language>en</language>
    <item>
      <title>First Setup to programm a discord bot in python</title>
      <dc:creator>Ekcum</dc:creator>
      <pubDate>Wed, 28 Feb 2024 23:38:06 +0000</pubDate>
      <link>https://dev.to/stevenandmanyzerooss/first-setup-to-programm-a-discord-bot-in-python-34p9</link>
      <guid>https://dev.to/stevenandmanyzerooss/first-setup-to-programm-a-discord-bot-in-python-34p9</guid>
      <description>&lt;p&gt;Hey, you want to create a bot?&lt;br&gt;
Then you are in the right post for that.&lt;br&gt;
Questions are always welcome and I wish you happy coding.&lt;/p&gt;

&lt;p&gt;As a smallsidenote: I wrote this to get myself and the world a good explanation of what i programmed. The bot developed in this project is a multipurposebot called ModNPC. You can add him by this clicking this: &lt;a href="https://discord.com/api/oauth2/authorize?client_id=1144006301765095484&amp;amp;permissions=8&amp;amp;scope=bot" rel="noopener noreferrer"&gt;Just a link&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In this small article we will talk about the basics to create a bot and what you need to develop a bot.&lt;/p&gt;

&lt;p&gt;First you need to create a bot. Do this on this website:&lt;br&gt;
&lt;a href="https://discord.com/developers/applications" rel="noopener noreferrer"&gt;https://discord.com/developers/applications&lt;/a&gt;&lt;br&gt;
Create a new bot. After that get your token from this menu: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxwrgn5qmlz3ufhigcze.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxwrgn5qmlz3ufhigcze.png" alt="Image description" width="800" height="221"&gt;&lt;/a&gt;&lt;br&gt;
Please save it and dont share it with anybody u dont trust. It can easily cause server to collapse. After that i recommand, activating this checkboxes: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcegydx9wtzzz1jb6yhc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcegydx9wtzzz1jb6yhc.png" alt="Image description" width="800" height="386"&gt;&lt;/a&gt;&lt;br&gt;
Also activate the permissions your bot need to operate normally: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fteyjciux4u6kbzj2eox7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fteyjciux4u6kbzj2eox7.png" alt="Image description" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For developing your bot u will debug a lot. For this create an own discord server. After that invite your bot over the developer portal on this server: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz540wz57qoxuye0eo6hd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz540wz57qoxuye0eo6hd.png" alt="Image description" width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dont forget to activate in the first checkbox bot. After that you choose which rights your bot should have with this link. After this just copy the link, enter in your browser and add the bot to the right server. &lt;/p&gt;

&lt;p&gt;For programming a bot in python, you need to install these libs by entering this in your terminal:&lt;br&gt;
&lt;code&gt;pip install discord.ext.context&lt;/code&gt;&lt;br&gt;
&lt;code&gt;py -3 -m pip install -U discord.py update-command: pip install --upgrade discord.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you prefer to do it in rust, i recommand using &lt;a href="https://github.com/serenity-rs/serenity" rel="noopener noreferrer"&gt;serenity-rs&lt;/a&gt; and the &lt;a href="https://github.com/serenity-rs/poise" rel="noopener noreferrer"&gt;poise framework&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the basic stuff you need to develop a bot.&lt;/p&gt;

</description>
      <category>discord</category>
      <category>python</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
