Skip to content
Dragon Logo

Crafted By Little Dragons

Where Education, Art, and Function meet.

  • Home
  • Blog
  • Calendar
  • Newsletter
  • About Us
  • Shop
  • Cart
Blog
Dec 12/4/2023
December 4, 2023
Blog
Accountability Post – Week 5 Q4
October 27, 2021
Todd and the Fae Thumbnails Ch 1 Sc 1 Fr 21
Blog 2024
Story Board – Digital – Frame 021
February 11, 2024
Todd and the Fae Thumbnails Ch 1 Sc 1 Fr 06 Updated
Blog 2024
Story Board – Analog – Frame 006.5
June 3, 2024
Blog
Week 4 – Jan 21 2024 Daily Blog
January 21, 2024
Blog
Dec 12/6/2023
December 6, 2023

April 1st to the 7th

Posted on April 7, 2019April 20, 2025 By Keith Southworth
Blog
This entry is part 21 of 71 in the series Artist Blog Before 2020

It’s been a bit of an odd week. Migraines were bad, but we managed to push through with some coding fun. Created three bots over the last two weeks.

The first is just a basic chatbot, with the normal simple commands. I used this with the pact book on node.js to familiarize myself a little with the node.js and twitch bots. It’s funny to think everyone thinks it’s new, but really they just made a GUI for the old IRC servers. They also made it stupid complicated to do anything by limiting it to node.js, but meh, with basics only needed for this particular bot it’s good enough.

The next bot I wrote in javascript on my local computer, and tested and had it all working. The tried to move it over to the glitch servers, and intergrate it into the node.js bots. Turns out that is a huge pain in the kester. Specifically node.js and it’s refusal to pass variables between functions, it’s more likely to pass down layers, than up. And then you have the issue with the http request/get/etc which does not release it’s variables for rawData, or body (basically the content you get in response to a basic AJAX request. Then it didn’t want to allow me to pass variables into it outside of the URL it’s to call. Eventually I found a pattern of calls that would work to produce the output I wanted. Then there’s the problem with the glitch server reloading things all the time, to conserver server resources. It means even if you have a bot account connected to the server, and your active and live, your bot can reload, if it reloads, your timer (for controling the server calls) is reset, and your code never excutes as expected. I think a dedicated VPS box is the only solution, which I’m not ready to deal with again yet. So that’s back burnered. It works, but not as I wanted.

Then we have last but not least the biggest pain in the but, and I only did it as an after thought. So in this one it needs to make multiple AJAX calls pulling users from a list, and then checking one of the twitch API’s to see if the user is live. Then if the user is live, it needs to build a final link that is posted at the end to the chat room, so that all the users can use the kadgar multi-channel viewing page to hang out with lots of artists at the same time. This is in conjunction with the glass artists all using a discord voice chat server so people can hear all the artists talking about their craft or hanging out and having fun. Sounds simple enough right? But no, remember that variable passing issues from before? And the fact that http module and sub-modules won’t release the data the Ajax call returns? That renders the concept of this almost impossible if your limited to node.js, and only the glitch server. Luckily we are not limited, and I have my server here at KidsHideAway. I used a php script here, to accept the AJAX call, it passes in the user list, then the php code uses curl to connect to the twitch API to determine if the users are active and if they are, it builds the link, and passes it back to the twitch bot. Then the bot jumps through so hops and posts the link in the chat room. It takes some time depending on how many users are being checked, the list is a little long. But it does work. BUT then we have the same issue with the server resetting, and timing being an issue. If we wanted it to kick off once every 30 minutes and update the link in chat, then we need a timer to work correctly. That’s apparently not possible, so I have it set to also work as a command.

It’s been a week. How was yours?

Artist Blog Before 2020

Back to School COM-230 Week 1

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Related

Tags: blog

Post navigation

❮ Previous Post: What type of kiln do you use?
Next Post: Glass Studio Build #6, Studio Update – Apr 2019 ❯

Additionally

Artist Blog
Blog
Blog Weekly Update 5/26/2024
May 26, 2024
Glass Studio - Tiny Wood Shed
Blog
Glass Studio Build #3, Used 2015 to 2016, the Tiny House, Homestead Adventure
February 2, 2024
Blog
Week 1 – Jan 6 2024
January 9, 2024
Blog
Glass Studio Build #4, Used 2016 Jan to May, Wood Shed
March 1, 2018

Post Calendar

May 2026
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Upcoming Events

Notice
There are no upcoming events.

Recent Posts

  • Tower Defense Timer Art Plan 🎨 Aliens 1
  • Tower Defense Timer Art/Assets 🗓️ Castle Week
  • Digital Version of Todd and the Fae Comic
  • ✅HatTrick Art 🗓️ Red Wolf Characters
  • Tower Defense Timer Art/Assets 🗓️ Castle Week 5

Discord Server

Work In Progress

    • WIP – Eat an Elephant
    • WIP - Tower Defense Timer
    • WIP - Todd and the Fae
    • WIP - Rebecca and the Ghost
    • WIP - Jessica and the WereWolf

Series

  • WIP – Todd and the Fae (81)


Other posts in series:

  • Shenanigans – Vlogmas 23
  • Inktober Day 20 – Cats Sleeping
  • Inktober Day 14 – Racoon
  • Inktober Day 15 – Cat at loss, Memorial Day
  • Inktober Day 4 – Heart Cats
  • Inktober Day 5 – Witchy Cat
  • Inktober Day 6 – Content Cat
  • Inktober Day 7 -Medicating Cat
  • Inktober Day 8 – Cat Jack-O-Lantern
  • Inktober Day 3 – Sunrise Cat
  • Inktober Day 2 – Cat Sleeping
  • Inktober Day 1 – Cat
  • The end of summer…..
  • COM-230 Week 5
  • COM-230 Week 4
  • COM-230 – Week 4 Magazine Ad
  • COM-230 Week 3
  • COM-230 Week 2
  • Glass Studio Build #6, Studio Update – Apr 2019
  • Back to School
  • April 1st to the 7th
  • COM-230 Week 1
  • Glass Studio Build #6, 2018 – June Update, the Big Shed, Ohio
  • Glass Studio Build #5, Used 2016 to 2017, the Tiny Shed, Johnson City, TN
  • Glass Studio Build #6, Studio Update Feb – 2019
  • Glass Studio Build #4, Used 2016 Jan to May, Wood Shed
  • Glass Studio Build #3, Used 2015 to 2016, the Tiny House, Homestead Adventure
  • Glass Studio Build #2, Used 2014 to 2015, the School Bus
  • Our first craft fair after the fire.
  • Glass Studio Build #1 – Bakersville, NC
  • GRA202 – 3d Asset: Plastic Barrel
  • EED/435 ELEMENTARY METHODS – FINE ARTS
  • GRA202 3d Asset: Plastic Barrel
  • EED/435 ELEMENTARY METHODS – FINE ARTS
  • GRA202 3d Asset: Cardboard Box
  • Glass Studio Build #6, Studio Update – Jan 2019
  • 100 Days of Code
  • SOC/315 CULTURAL DIVERSITY
  • Update: 2018 in review
  • Session 2: IDS401 and IT140
  • Polls
  • Update Dec 31 2018!
  • FAQ – Payment Processors and Social Media Logins
  • Who are you?
  • How do you handle Shipping?
  • Are you an Amazon Affiliate?
  • What type of kiln do you use?
  • What type of tools do you use?
  • Second-Hand Items
  • Cleveland Aquarium Videos: Compilation Fish

Archive

Series



Other posts in series:

  • Shenanigans – Vlogmas 23
  • Inktober Day 20 – Cats Sleeping
  • Inktober Day 14 – Racoon
  • Inktober Day 15 – Cat at loss, Memorial Day
  • Inktober Day 4 – Heart Cats
  • Inktober Day 5 – Witchy Cat
  • Inktober Day 6 – Content Cat
  • Inktober Day 7 -Medicating Cat
  • Inktober Day 8 – Cat Jack-O-Lantern
  • Inktober Day 3 – Sunrise Cat
  • Inktober Day 2 – Cat Sleeping
  • Inktober Day 1 – Cat
  • The end of summer…..
  • COM-230 Week 5
  • COM-230 Week 4
  • COM-230 – Week 4 Magazine Ad
  • COM-230 Week 3
  • COM-230 Week 2
  • Glass Studio Build #6, Studio Update – Apr 2019
  • Back to School
  • April 1st to the 7th
  • COM-230 Week 1
  • Glass Studio Build #6, 2018 – June Update, the Big Shed, Ohio
  • Glass Studio Build #5, Used 2016 to 2017, the Tiny Shed, Johnson City, TN
  • Glass Studio Build #6, Studio Update Feb – 2019
  • Glass Studio Build #4, Used 2016 Jan to May, Wood Shed
  • Glass Studio Build #3, Used 2015 to 2016, the Tiny House, Homestead Adventure
  • Glass Studio Build #2, Used 2014 to 2015, the School Bus
  • Our first craft fair after the fire.
  • Glass Studio Build #1 – Bakersville, NC
  • GRA202 – 3d Asset: Plastic Barrel
  • EED/435 ELEMENTARY METHODS – FINE ARTS
  • GRA202 3d Asset: Plastic Barrel
  • EED/435 ELEMENTARY METHODS – FINE ARTS
  • GRA202 3d Asset: Cardboard Box
  • Glass Studio Build #6, Studio Update – Jan 2019
  • 100 Days of Code
  • SOC/315 CULTURAL DIVERSITY
  • Update: 2018 in review
  • Session 2: IDS401 and IT140
  • Polls
  • Update Dec 31 2018!
  • FAQ – Payment Processors and Social Media Logins
  • Who are you?
  • How do you handle Shipping?
  • Are you an Amazon Affiliate?
  • What type of kiln do you use?
  • What type of tools do you use?
  • Second-Hand Items
  • Cleveland Aquarium Videos: Compilation Fish
LLM Policy
Return Policy
Affiliates
Privacy Policy
Newsletter

Copyright © 2026 Crafted By Little Dragons.

Theme: Oceanly News Dark by ScriptsTown