<?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: Mr.StiK</title>
    <description>The latest articles on DEV Community by Mr.StiK (@mrstik101).</description>
    <link>https://dev.to/mrstik101</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%2F1009968%2Fde4f9c72-5b61-4dc7-b88a-79140ec5b27f.jpg</url>
      <title>DEV Community: Mr.StiK</title>
      <link>https://dev.to/mrstik101</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrstik101"/>
    <language>en</language>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 8 - Learning something manageable...</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Thu, 30 Mar 2023 05:03:25 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-8-learning-something-manageable-3gn7</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-8-learning-something-manageable-3gn7</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1641304222028161024-72" src="https://platform.twitter.com/embed/Tweet.html?id=1641304222028161024"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1641304222028161024-72');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1641304222028161024&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, this is Mr.StiK.&lt;/p&gt;

&lt;p&gt;So, my uploads of blogging has been quite slow because of few things:&lt;/p&gt;

&lt;p&gt;1) I'm trying to fix some stuff&lt;br&gt;
2) The code has gone so big that it makes my head feel dizzy 😵‍💫😵‍💫😵‍💫&lt;br&gt;
3) I've a bit of ADHD problems and this is making me drive away from the project because I'm seeing no hope on this...&lt;/p&gt;

&lt;p&gt;So, I asked some help, and this is what I got...&lt;/p&gt;

&lt;p&gt;I'VE TO LEARN A DATABASE AND ASYNCIO FOR THIS CRAP!!!&lt;/p&gt;

&lt;p&gt;WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&lt;/p&gt;

&lt;p&gt;so yeah, no code for you, again. I'm sorry&lt;/p&gt;

&lt;p&gt;;(&lt;/p&gt;

&lt;p&gt;so, yeah, ima ded.&lt;/p&gt;

&lt;p&gt;Toodles&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVLBOG 7 - We're Starting the Games soon...?</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Mon, 27 Mar 2023 18:45:36 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devlbog-7-were-starting-the-games-soon-3gpb</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devlbog-7-were-starting-the-games-soon-3gpb</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1640423107499311113-925" src="https://platform.twitter.com/embed/Tweet.html?id=1640423107499311113"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1640423107499311113-925');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1640423107499311113&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, this is Mr.StiK&lt;/p&gt;

&lt;p&gt;So, as you can see, on the tweet, we did something, again, bit small stuff... we just started on the game concepts, which kind of leading me to a confusion...&lt;/p&gt;

&lt;p&gt;Should I change the code? If you don't know what I mean, let me explain;&lt;/p&gt;

&lt;p&gt;You see, the code for the bot is like as if anyone can mess any games from ANY server... I have not wrote the code in the way in which multiple server can start separate games with no problems... so, I'll be considering advices from veteran 'pythonists' for some answers...&lt;/p&gt;

&lt;p&gt;But again, that's for later, my exam's are almost getting over, report card and fate coming soon (XD)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Sorry, there's no code for you today, just want to say I'm still alive -_-&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So, yeah, that's it.&lt;/p&gt;

&lt;p&gt;Toodles!&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>discord</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 6 - Start Screen DONE...kinda? (3/3)</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Sun, 26 Mar 2023 04:01:50 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-6-start-screen-donekinda-33-3866</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-6-start-screen-donekinda-33-3866</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1639836499133726722-316" src="https://platform.twitter.com/embed/Tweet.html?id=1639836499133726722"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1639836499133726722-316');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1639836499133726722&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, this is Mr.StiK.&lt;br&gt;
[Mr.StiK's intro Dialogue counter: 7]&lt;/p&gt;

&lt;p&gt;So, just like the tweet above and the counter joke just above (XD), I made a counter system in the bot.&lt;/p&gt;

&lt;p&gt;Basically I don't have hopes of editing that dang embed message... so, I found a perfect solution...&lt;/p&gt;

&lt;p&gt;Yes, you may can understand I'm in a grave situation of coding till 1:20 AM, and I'm fed of it.&lt;/p&gt;

&lt;p&gt;discord.py server was... unaware... of my 'problem',  so I need to find my own solution... and I did it, I coded it all by myself~&lt;/p&gt;

&lt;p&gt;No, seriously, thanks to CHATGPT for fixing my error in the code.&lt;/p&gt;

&lt;p&gt;And it's not in the tweet, but I just added players list on the message too (actually while typing... seriously). Here's the image of it: &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frolebxo5im3mgjmpas75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frolebxo5im3mgjmpas75.png" alt="Image description" width="539" height="388"&gt;&lt;/a&gt;&lt;br&gt;
 Now, it's code time! Here's the promised code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;player_count = None
# Now actual stuff...
class StartButton(discord.ui.View):
    def __init__(self):
        super().__init__()
        self.value = None

    @discord.ui.button(label='Join Game', style=discord.ButtonStyle.grey)
    async def start_button(self, interaction: discord.Interaction, button: discord.ui.Button):
        if interaction.user.name in players:
            await interaction.response.send_message('You already joined the game', ephemeral=True)
        else:
            players.append(interaction.user.name)
            await interaction.response.send_message("You've successfully joined the GAME!!!", ephemeral=True)
        print(players)
        await player_count.edit(content="Total count of players is `"+ str(len(players)) + '` And Players are: `' + str(players) + '`')
        self.value = True

@bot.command()
async def start(ctx):
    global player_count
    players.clear()
    lobby_admin = ctx.author.name
    players.append(ctx.author.name)
    start_view = StartButton()
    print(players)
    await ctx.send(embed=start_embed, view=start_view)
    player_count = await ctx.send("Total count of players is `"+ str(len(players)) + '` And Players are: `' + str(players) + '`')


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see, &lt;code&gt;player_count&lt;/code&gt; (which is the message of player counting because for editing message purpose) is assigned as None. This is because if we're assigning it on start command (&lt;code&gt;async def start()&lt;/code&gt;) we can't use it for editing while interaction, who's code is on top. So, I already assigned a variable like that BEFORE that. And that solution worked...&lt;/p&gt;

&lt;p&gt;Unfortunately, I can't see the change CHATGPT made, because... I don't know where it is. It looks like the same code!&lt;/p&gt;

&lt;p&gt;And the player counting thing took a bit of basic python knowledge (heh. 😏). For more on the rest of the code, see DEVBLOG 4.&lt;/p&gt;

&lt;p&gt;So, yeah, that's it.&lt;/p&gt;

&lt;p&gt;Toodles.&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>discord</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 5 - Start Screen (2/3)</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Sat, 25 Mar 2023 03:56:38 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-5-start-screen-23-4ajg</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-5-start-screen-23-4ajg</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1639473505325465603-881" src="https://platform.twitter.com/embed/Tweet.html?id=1639473505325465603"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1639473505325465603-881');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1639473505325465603&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, you know me, this is my 6th blog and you &lt;strong&gt;WILL&lt;/strong&gt; know me (newbies, I'm Mr.StiK)&lt;/p&gt;

&lt;p&gt;So, as you cans see... yes, I coded till 1:20 AM and my mom got tired and slept after shouting to me to 'Close that dang Computer!!!' and I got the advantage for extra coding time :)&lt;/p&gt;

&lt;p&gt;I only slept for 5 hours, but anything for a sussy bot XD.&lt;/p&gt;

&lt;p&gt;So, I got players list working! Now whoever presses it, can join with no problem!!! No '2-Players-with-same-name' thing, etc.&lt;/p&gt;

&lt;p&gt;But I need to figure out more on this embed, though...&lt;/p&gt;

&lt;p&gt;I need to edit the embed, make the lifetime of the embed a bit long because for some reason, only 1 person can interact with it...&lt;/p&gt;

&lt;p&gt;And unfortunately, no code for today, because the code is spaghetti and it's still not complete to show you guys... but luckily, I can tell you how I did the Players list management...&lt;/p&gt;

&lt;p&gt;You see, the structure of the code is like this, that the Start Button/UI Class (for that embed's Buttons) is above that of the embed message, and I can't do anything on it, because it's the official way, for some reason...&lt;/p&gt;

&lt;p&gt;Now, I also did a small change for the thing I'm working on, which is edit embed... so I made the whole &lt;code&gt;start_embed&lt;/code&gt; (the embed message for the start screen) to be &lt;em&gt;above&lt;/em&gt; the Start UI Class, and the command and sending functions belove the class. Somewhat looks like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;start_embed&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Button stuff&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Sending the embed&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;so yeah, that's how it works... I might figure this out, but I have to ask discord.py, my heaven, to give me the   &lt;code&gt;U L T I M A T E    S O L U T I O N&lt;/code&gt; (XD)&lt;/p&gt;

&lt;p&gt;so, that's it!&lt;/p&gt;

&lt;p&gt;Toodles!&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>discord</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 4 - Start Screen...(1/3)</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Thu, 23 Mar 2023 11:56:58 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-4-start-screen13-3n33</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-4-start-screen13-3n33</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1638870087061872640-13" src="https://platform.twitter.com/embed/Tweet.html?id=1638870087061872640"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1638870087061872640-13');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1638870087061872640&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Heya, this is~ you know who am I, don't you!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, quick coding, I made the Start Screen today most of it, because I'm fasting, and exams too so I might get only little time to code, so... Time is Precious!&lt;/p&gt;

&lt;p&gt;I think my blogs are not having coding content, so, I might share code next blogs... but here's today's code for a good start.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;players&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;StartButton&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;View&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="nf"&gt;super&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;

        &lt;span class="nd"&gt;@discord.ui.button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Join Game&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ButtonStyle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;grey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;start_button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;interaction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Interaction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="n"&gt;players&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;interaction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;#&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;interaction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;discriminator&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;interaction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send_message&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;You&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;ve successfully joined the GAME!!!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ephemeral&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;players&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stop&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nd"&gt;@bot.command&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;start_embed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;colour&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;discord&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Colour&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;red&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
        &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Welcome to the **LOBBY**&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Game will start once there are enough players and to join, Click &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Join Game&lt;/span&gt;&lt;span class="sh"&gt;"'&lt;/span&gt;

    &lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;start_view&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;StartButton&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;embed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_embed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;view&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_view&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, yeah, let me explain a bit:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;players&lt;/code&gt; is a list (or an array, in other language terms :) ) and &lt;code&gt;host&lt;/code&gt; is a string and these variables will contain user names... and I think you may know what are their uses... -_-&lt;/p&gt;

&lt;p&gt;And when somebody starts a game, the user who said that will be the host (it is not included, maybe tomorrow) ( [❕] StiK will remember that...) and the users who press Join gets their name in the &lt;code&gt;players&lt;/code&gt; list and actually adds their username by getting the name and discriminator value. The username string goes:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;f'{interaction.user.name}#{interaction.user.discriminator}'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I made it a formative string for doing it easy, example, just say UserGuy#0001 clicked this. That guy is the interaction.user, his name being 'UserGuy' and discriminator '0001'. So, I first formatted the name variable then a '#' goes on and then finally the discriminator. Thus we got the name!&lt;/p&gt;

&lt;p&gt;My plan is to add these players in a 'Nested Dictionary' with their color and role as a dictionary... so it might be easy to manage them and their actions and roles...&lt;/p&gt;

&lt;p&gt;So, yeah, if you have suggestions, please, PLEASE let me know because as you can see, I'm new to python and I'll never forget the help.&lt;/p&gt;

&lt;p&gt;[PS: GOTO THE OG TWEET AND YOU'LL SEE THE &lt;em&gt;SECOND IMAGE&lt;/em&gt; I WAS TALKING ABOUT IN THE TWEET]&lt;/p&gt;

&lt;p&gt;So, yeah, that's for today,&lt;/p&gt;

&lt;p&gt;Toodles. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 3 - Help Section and Help me...?</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Wed, 22 Mar 2023 11:12:44 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-3-help-section-and-help-me-2l7j</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-3-help-section-and-help-me-2l7j</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1638496254496849921-168" src="https://platform.twitter.com/embed/Tweet.html?id=1638496254496849921"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1638496254496849921-168');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1638496254496849921&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1638606636573925408-617" src="https://platform.twitter.com/embed/Tweet.html?id=1638606636573925408"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1638606636573925408-617');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1638606636573925408&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, This is Mr.StiK, again, again (again)&lt;/p&gt;

&lt;p&gt;So today's progress was all on Help Section for the Bot (like I planned, I'll work on it). And I did a bit of it...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PART 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But I had a &lt;em&gt;small tiny issue&lt;/em&gt;…which you can see in the twitter post's 1st image, the message had &lt;em&gt;2 embeds&lt;/em&gt;… which was something I didn't wanted, I tried to check code, nothing. Re-type it, nothing. &lt;strong&gt;DELETE THE CODE&lt;/strong&gt;, and still the message comes... somewhat I would say, &lt;code&gt;stuck-code&lt;/code&gt;. That embed message was the one I was working on, but then, my laptop was out of charge, and the whole token thing had some issue, I don't know, didn't notice, and that was the reason. I realized this when I asked my dear discord.py server, and one guy said 'Have you tried resetting the token?'&lt;/p&gt;

&lt;p&gt;I tried... &lt;strong&gt;it worked!&lt;/strong&gt; You can see the result on Image 2 (go to the 1st original original tweet to see it completely)…&lt;/p&gt;

&lt;p&gt;So yeah, lesson truly learnt!&lt;/p&gt;

&lt;p&gt;And I wasted 4 hours on this...&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;B R U H&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PART 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SO it's night, but I completed the help section!!! with ephemeral messages too!!! Worth the night :) .&lt;/p&gt;

&lt;p&gt;Anyways, I'm tired, going to hit the sack.&lt;/p&gt;

&lt;p&gt;Toodles.&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>gamedev</category>
      <category>discord</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 2 - Buttons and New Possibilities</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Tue, 21 Mar 2023 10:13:15 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-2-buttons-and-new-possibilities-31cb</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-2-buttons-and-new-possibilities-31cb</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1638118091342196737-767" src="https://platform.twitter.com/embed/Tweet.html?id=1638118091342196737"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1638118091342196737-767');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1638118091342196737&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, This is Mr.StiK, again, again&lt;/p&gt;

&lt;p&gt;So, this post is quite fast since I take 24 hours to post, this is less than that... that's because I took a lot of progress today&lt;/p&gt;

&lt;p&gt;To start of, I again switched to PyCharm because Thonny was having... some issues... with UI (I'll come to that later). So yeah, back to the IDE I hate, but this time, I made my own file rather than a project, so PyCharm can't harm me this time, HAH!&lt;/p&gt;

&lt;p&gt;And I completed embeds... with &lt;code&gt;set_author()&lt;/code&gt;. And I mastered EMBEDS...&lt;/p&gt;

&lt;p&gt;The next thing I had in my bucket_list.txt file was... Buttons... which was kind of cool, to be honest, and I want to try it out...&lt;/p&gt;

&lt;p&gt;[insert AFTER 1 ETERNITY meme here]&lt;/p&gt;

&lt;p&gt;It took me 2 AND AN HALF HOUR TO FIX IT and solution was TO GO BACK TO PYCHARM WHAT THE~&lt;/p&gt;

&lt;p&gt;~back to the point.&lt;/p&gt;

&lt;p&gt;Thanks to some awesome geek~ I mean, 'programmers' in the discord.py discord server, I actually got the solution... not only should I change my IDE, I should also use buttons using Classes, which was not the way I was doing...&lt;/p&gt;

&lt;p&gt;So, yeah, that's done...&lt;/p&gt;

&lt;p&gt;Then I managed to make the 1st step to actually making the bot... Start Screen...&lt;/p&gt;

&lt;p&gt;And I did, not finished but still, it's good for me!&lt;/p&gt;

&lt;p&gt;That's it for today's progress... I got to study for exams, wish me luck!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS: Here's people who helped me with this much progress;
CHATGPT for explaining each code with examples (true programmers use ChatGPT for that, not for generating code for your work 😎 )

Little Furret, and Invisible on the Discord Server...

And finally my beta-tester and trustworthy friend: PakinDe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Toodles!&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>python</category>
      <category>gamedev</category>
      <category>discord</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 1 - Embeds</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Sun, 19 Mar 2023 17:38:57 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-1-embeds-35hi</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-1-embeds-35hi</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1637507895880187904-398" src="https://platform.twitter.com/embed/Tweet.html?id=1637507895880187904"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1637507895880187904-398');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1637507895880187904&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, this is Mr.StiK, again.&lt;/p&gt;

&lt;p&gt;So, as mentioned on the tweet, I did some embed test which I'll use a lot in the final bot. And yes, I migrated from PyCharm to Thonny because I lost all my files from PyCharm because &lt;strong&gt;I JUST RENAMED THE PROJECT OUTSIDE PYCHARM ARE YOU KIDDIN&lt;/strong&gt;~ ok, ok, you know what I'm saying.&lt;/p&gt;

&lt;p&gt;This was my progress so far because it took me so long to do this, about an hour and half, but I'm happy with the result.&lt;/p&gt;

&lt;p&gt;SO, see you in the next DEVBLOG, I might not be able to post it in next 24 hours because I've exams going on, this is study leave I'm utilizing XD.&lt;/p&gt;

&lt;p&gt;Alright, that's it.&lt;/p&gt;

&lt;p&gt;Toodles!&lt;/p&gt;

</description>
      <category>python</category>
      <category>discord</category>
      <category>100daysofcode</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Making of Among Us in Discord - DEVBLOG 0</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Fri, 17 Mar 2023 17:50:56 +0000</pubDate>
      <link>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-0-1id2</link>
      <guid>https://dev.to/mrstik101/making-of-among-us-in-discord-devblog-0-1id2</guid>
      <description>&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1636424736417644547-271" src="https://platform.twitter.com/embed/Tweet.html?id=1636424736417644547"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1636424736417644547-271');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1636424736417644547&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;Heya, this is Mr.StiK&lt;/p&gt;

&lt;p&gt;So recently I learnt python (which was a good decision to be honest) and I made some small programs that help me with my maths homework XD. So this time I decided to make something worth to call a GOOD project... so I decided to make an Among Us in Discord...as a bot...in python.&lt;/p&gt;

&lt;p&gt;The project looks too ambitious for a beginner project, but I decided not to lose my focus and got ready with 5 jar of coffee powder to get start ;).&lt;/p&gt;

&lt;p&gt;I so far made the bot online with a program thanks to the awesome tutorial made by &lt;a href="https://www.youtube.com/watch?v=1yLfjMtsV9s"&gt;Idently&lt;/a&gt;. And we got the bot running as shown here...&lt;/p&gt;

&lt;p&gt;So, that's for this devblog I might return soon (maybe not but im active at twitter, you know :) ) so, yeah&lt;/p&gt;

&lt;p&gt;Toodles!&lt;/p&gt;

</description>
      <category>python</category>
      <category>discord</category>
      <category>gamedev</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Python Mean Program!!! - My first Python code!!! :)</title>
      <dc:creator>Mr.StiK</dc:creator>
      <pubDate>Fri, 17 Mar 2023 17:43:02 +0000</pubDate>
      <link>https://dev.to/mrstik101/python-mean-program-my-first-python-code--4d1f</link>
      <guid>https://dev.to/mrstik101/python-mean-program-my-first-python-code--4d1f</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fayyeen5za23f0x6eplo3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fayyeen5za23f0x6eplo3.png" alt="Image description" width="800" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I was doing my maths homework on mean average, and it's so boring and tiring I hate it very much, until recently I tried to learn python... which was a good choice, because I made a program that finds the mean of numbers in the list (or arrays, for non-python guys)&lt;/p&gt;

&lt;p&gt;Seems good for a first project! :)&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
