<?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 Chris Sexton on Medium]]></title>
        <description><![CDATA[Stories by Chris Sexton on Medium]]></description>
        <link>https://medium.com/@cpsexton?source=rss-94437c73a38a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*T4rWzDPrDncXU8ih-lBqmA.jpeg</url>
            <title>Stories by Chris Sexton on Medium</title>
            <link>https://medium.com/@cpsexton?source=rss-94437c73a38a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:40:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cpsexton/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[Building more beautiful embeds for your Discord bot]]></title>
            <link>https://medium.com/@cpsexton/building-more-beautiful-embeds-for-your-discord-bot-8ce712bbc98?source=rss-94437c73a38a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ce712bbc98</guid>
            <dc:creator><![CDATA[Chris Sexton]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 18:01:10 GMT</pubDate>
            <atom:updated>2020-03-12T18:01:10.333Z</atom:updated>
            <content:encoded><![CDATA[<p>While building my discord bot I noticed how boring and cheap a bot can seem when it returns only a message to the channel. After a few internet searches I came across discord.js’s ability to use an embed and more importantly a RichEmbed which will allow you to add image/video preview, thumbnails, titles, url’s and much more.</p><p>However in the Discord.js update from v11 to v12, RichEmbed() has been removed and developers are instructed to use MessageEmbed(). A few minor changes occur when using MessageEmbed() instead of RichEmbed() but nothing too severe. MessageEmbed() does not have the methods addBlankField or attachFile, instead you can use addField and attachFiles if necessary.</p><p>Now lets look at some code to spice up our bot’s replies.</p><p>Assuming we already have variables declared for ‘client’ and ‘prefix’, let’s declare a variable for our new MessageEmbed:</p><pre>const embed = new Discord.MessageEmbed();</pre><p>Next we can set up a message <em>(`${prefix}embedthis`)</em> for our bot to respond to:</p><pre>client.on(&#39;message&#39;, message =&gt; {<br>    if(message.content.startsWith(`${prefix}embedthis`)) {<br>        &lt;do something&gt;<br>    }<br>});</pre><p>Finally we can add our embed and start adding in the details we want:</p><pre><em>client.on(&#39;message&#39;, message =&gt; {...</em></pre><pre>message.channel.send(embed<br>            .setTitle(&quot;Title can be set here&quot;)<br>            .setColor(255)<br>            .setThumbnail(url)<br>            .setDescription(&quot;Description text&quot;)<br>            .addField(&quot;Inline field&quot;, &quot;field text&quot;, true)<br>            .addField(&quot;Inline field 2&quot;, &quot;Field text&quot;, true)<br>            .addField(&quot;Text field&quot;, &quot;Field text&quot;)<br> );</pre><pre> <em>...}});</em></pre><p>Looking at the code above we see we have added a <strong><em>title</em></strong> to the top of the embed, we have set the border color as blue with <strong><em>(255)</em></strong>,<strong><em> </em></strong>we have added a <strong><em>thumbnail</em></strong> to the top right <em>(in this case I used the discordjs logo but removed the url from the sample code)</em>, a <strong><em>description</em></strong>, 2 inline<strong><em> text fields</em></strong>,<strong><em> </em></strong>and 1<strong><em> </em></strong>default<strong><em> text field.</em></strong></p><p>The result of the code above will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*Kun0bDlls58ejUPK0ywT_Q.png" /></figure><p>Resources:</p><p>DiscordJS docs: <a href="https://discord.js.org/#/docs/main/stable/general/welcome">here</a></p><p>DiscordJS guide: <a href="https://discordjs.guide/">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ce712bbc98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AR Image Trackers and you]]></title>
            <link>https://medium.com/@cpsexton/ar-image-trackers-and-you-a0e0be3488da?source=rss-94437c73a38a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0e0be3488da</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[ar]]></category>
            <dc:creator><![CDATA[Chris Sexton]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 01:54:47 GMT</pubDate>
            <atom:updated>2020-03-09T01:54:47.437Z</atom:updated>
            <content:encoded><![CDATA[<p>For my capstone project while in Software Development boot camp I made a small Augmented Reality game using Unity and C#. In this blog I will explain my solution to a tiny hiccup that ended in a week long battle to achieve true consistent image tracking.</p><p>My first idea was to use standard playing cards as image trackers as I thought the size and high quality pictures and numbers on the cards would be perfect for my game. After loading in the images into Unity and setting up all the models I realized that the playing cards were a terrible idea. The cards were too similar. The idea behind Image Trackers in AR is to have high-quality images that have many points on tracking. QR codes are what I found to work the best. I used the website qrcode-monkey.com to create my own very different QR codes.</p><p>ARTags or a more commonly known marker, the QR code, are images or pictures in real life that the camera tracks in real time. Having unique high quality images to track will greatly help reduce tracking lose. For my project QR codes worked wonders and I was very pleased with the tracking quality. I was able to present my project without any embarrassing hitches. Please don’t make the same mistake I did, start off with high quality unique image trackers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0e0be3488da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first group project in a coding bootcamp]]></title>
            <link>https://medium.com/@cpsexton/my-first-group-project-in-a-coding-bootcamp-e2186f0f12?source=rss-94437c73a38a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2186f0f12</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chris Sexton]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 17:28:09 GMT</pubDate>
            <atom:updated>2019-09-17T17:28:09.673Z</atom:updated>
            <content:encoded><![CDATA[<p>As per the title you can see I am a student participating in a coding bootcamp. At the beginning of week 3 we were assigned a partner and given the full week to create any app we wanted (As long as it passed certain criteria).</p><p>We were taught RUBY as our first language so naturally everyone made their app in RUBY. After 2 full weeks of RUBY my partner and I were ready to see how much we actually knew. Our app was supposed to showcase our abilities to gather data from a public API. We could not find one that was perfect for our app so we created our own data, converted it to a csv file and used that csv as our example of an API.</p><p>We worked on the app only during class hours and were surprised most of our code was written in one day. We had an extra battle to fight as I was sick the whole time, even leaving early the first day we were assigned the project. My partner didn’t let my sickness affect our work time together and we accomplished our task with ease. Project weeks at bootcamps have to be the most exciting weeks, everyone spreads out into groups, walks around asking everyone else for help, talking about their apps at lunch and in the halls, it really is an exciting time at ‘camp’.</p><p>My partner and I created a scheduling application thats run in the CLI, Command Line Interface, so it is nothing compared to apps like Lyft and Spotify but it is ours and we love it. We named it the Halloween Hallows Scheduler and it can create new and remember old users, it can filter events by day, location, and event type, it can remember selections the user makes and return them later in schedule form.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2186f0f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>