<?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: Eclipse 🍃</title>
    <description>The latest articles on DEV Community by Eclipse 🍃 (@eclipsethatscool).</description>
    <link>https://dev.to/eclipsethatscool</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F841252%2F5d1a85d3-f90b-438e-9522-b5e80bf5b4a4.jpg</url>
      <title>DEV Community: Eclipse 🍃</title>
      <link>https://dev.to/eclipsethatscool</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eclipsethatscool"/>
    <language>en</language>
    <item>
      <title>I Built a Retro CRT Terminal Portfolio (TUI) with Astro.js v5 &amp; Tailwind CSS</title>
      <dc:creator>Eclipse 🍃</dc:creator>
      <pubDate>Wed, 05 Aug 2026 07:15:35 +0000</pubDate>
      <link>https://dev.to/eclipsethatscool/i-built-a-retro-crt-terminal-portfolio-tui-with-astrojs-v5-tailwind-css-42ao</link>
      <guid>https://dev.to/eclipsethatscool/i-built-a-retro-crt-terminal-portfolio-tui-with-astrojs-v5-tailwind-css-42ao</guid>
      <description>&lt;p&gt;Hey everyone! I just open-sourced astro-tui-portfolio, a retro terminal-inspired portfolio template built with Astro.js v5 &amp;amp; Tailwind CSS v4.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Interactive bash-like CLI + Visual GUI Dashboard&lt;/li&gt;
&lt;li&gt;5 CRT Phosphor color themes (Green, Amber, Cyan, Dracula, Mono)&lt;/li&gt;
&lt;li&gt;Web Audio API sound synthesizer&lt;/li&gt;
&lt;li&gt;HTML5 Canvas Matrix Rain overlay&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feel free to check out the repo and use it for your own portfolio: &lt;/p&gt;

&lt;p&gt;👉 GitHub: &lt;a href="https://github.com/nivinvysakh/astro-tui-portfolio" rel="noopener noreferrer"&gt;https://github.com/nivinvysakh/astro-tui-portfolio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let me know your thoughts or feedback! ⭐&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>portfolio</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Build your own Discord Chat GPT Bot.</title>
      <dc:creator>Eclipse 🍃</dc:creator>
      <pubDate>Sat, 10 Jun 2023 16:08:24 +0000</pubDate>
      <link>https://dev.to/eclipsethatscool/create-discord-bot-with-chatgpt-5jp</link>
      <guid>https://dev.to/eclipsethatscool/create-discord-bot-with-chatgpt-5jp</guid>
      <description>&lt;p&gt;Are you looking to create a Discord bot that can interact with users using natural language processing? Then, you're in luck! In this tutorial, we'll walk you through the steps to create a Discord bot and integrate it with OpenAI.&lt;/p&gt;

&lt;p&gt;Step 1: Create a Discord Bot&lt;br&gt;
The first step is to create a Discord bot. You can create a bot by following the official Discord Developer Portal documentation. Once you have created a bot, you will receive a token that you will need to use in your code.&lt;/p&gt;

&lt;p&gt;Step 2: Install Dependencies&lt;br&gt;
To use OpenAI in your bot, you will need to install the openai Python package. You can install it using pip:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install openai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will also need to install the discord.py package to interact with the Discord API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install discord.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 3: Create a Python Script&lt;br&gt;
Next, create a Python script that will handle the bot's logic. Here's a sample script that responds to user messages using OpenAI:&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="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;discord&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;discord.ext&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;commands&lt;/span&gt;

&lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="n"&gt;bot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;commands&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Bot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;command_prefix&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;!&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@bot.event&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;on_ready&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="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;bot&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; has connected to Discord!&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@bot.event&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;on_message&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;author&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;bot&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="k"&gt;return&lt;/span&gt;

    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Completion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;davinci&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;max_tokens&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&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;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;channel&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;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;bot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR_DISCORD_BOT_TOKEN&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace YOUR_API_KEY with your OpenAI API key and YOUR_DISCORD_BOT_TOKEN with your Discord bot token.&lt;/p&gt;

&lt;p&gt;Step 4: Run the Bot&lt;br&gt;
To run the bot, save the Python script as bot.py and run the following command in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python bot.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start the bot and connect it to your Discord server.&lt;/p&gt;

&lt;p&gt;Step 5: Test the Bot&lt;br&gt;
Finally, test the bot by sending a message on your Discord server. The bot should respond with a message generated by OpenAI.&lt;/p&gt;

&lt;p&gt;That's it! You have successfully created a Discord bot that can interact with users using OpenAI. With this powerful combination, you can create a bot that can answer questions, provide recommendations, and much more.&lt;/p&gt;

</description>
      <category>openai</category>
      <category>discord</category>
      <category>python</category>
      <category>chatgpt</category>
    </item>
  </channel>
</rss>
