Showing posts with label Open Broadcast Studio. Show all posts
Showing posts with label Open Broadcast Studio. Show all posts

Sunday, 22 October 2023

Add a Twitch randomised fact command

 

I recently had a conversation with a friend on stream about creating a twitch chat command that would put a random fact in to the chat.
After some poking around with Streamer.bot I came up with this.
This may not be the most efficient method for doing this, but it was something I was able to set up in a few minutes.

You essentially have a number of actions which are your facts being entered into chat and another action, which is triggered by a twitch !command, that gets a random number between 1 and the amount of facts you have and selects the corresponding action.

I thought I'd leave it here in case anyone finds a use for it.
Do you have an idea for streamer.bot that you want to turn into a reality, drop a comment and let me know!
If you haven't already, I'd suggest you also check out their discord, there's some very friendly and clever people over there. https://discord.gg/VmdKdmVya2

Add a randomised Foxy Facts chat command


go to actions tab

right-click in action list

click add



Give it a name

and you might want to add them to a group for ease of viewing later

click ok



For that action go right-click on sub-actions on the right

hover over "Twitch" and "chat"

click send message to channel



enter the fact

click ok



do that for all the quotes you have


right-click and add another action

do the same as before (add a name like “Foxy Facts”, group, click ok)

right-click in sub-action, hover over "core", "logic", click "Get Random Number"




Enter from “1” and the number of facts you have



Click OK


right click in sub-action again, hover over "core", "logic", click "If/Else"



enter the variable as "randomNumber"

enter the value as 1

click "do action" (the button will say <No Action Selected>)



scroll and select the first fact action



we need to add a sub-action for each fact we have

so, we right-click "core", "logic", then "If/Else"

enter the variable the same "randomNumber"

enter the value of 2 and so on

click "do action" (the button will say <No Action Selected>)


Once we've done all that, we need to set a trigger

click on the “Commands” tab

right-click on the list and click “Add”



Give it a name

give it a command like “!foxyfact”



if you want to set a cool-down, you can do that on the bottom right


click OK


Go back to “Actions” and click on “Foxy Facts”


right-click in “Triggers”

Hover over “Core”, “Commands” and “Command Triggered”



scroll and select the second fact action and so on



Now, whenever someone puts “!foxyfacts” (Or whatever you called it)

It will put a random foxy fact in chat.

Saturday, 20 August 2022

Website and affiliates

I finally got around to completing version 1.0 of my wife's website for her art and business.

I'm not a web developer or content manager, but we went over the requirements, the main ones were a portfolio gallery and an asset rotator on the front page.

It took a while to get to grips with working on this kind of thing again, going through several iterations based on different platforms before finally landing on WordPress.

If you want, you can check them out. I've added the hyperlinks.


Once this was complete and the "customer" was happy, I decided it was time I updated my own website.

For the longest time, it was just a static page with a blurb and contact information. Honestly, it was looking pretty amateur.

The intention as with most websites is to attempt to engage with customers. I always had the idea of driving traffic from places like Twitch, YouTube, Twitter etc to a main site that had all the information in one place and showcase some of my other hobbies and services. I don't really have a particular niche, but I think I come up with or at least stumble upon some interesting stuff on occasion.

I've gone with a generic “tech services” template for now and having removed a lot of the boiler-plate stuff, I think it looks ok. There's basically no information on it presently, besides the contact information, but at least it now links out to this blog. In time, my intention will be to customise the theme for more of a tech geek style, with my central green colour scheme running through it.


Back along, my Sister created a family WhatsApp group for easily communicating updates during a difficult time. She had posted a link to a shower head on Amazon and it ended up being quite popular within the family. I believe at last count, five of us have one. I joked that she should create an affiliate link for it so that she could get a small kick back.

I thought it might be fun to make a pseudo-shop, which showcases things that I've found or purchased that I think are cool or useful enough to show. I created an Amazon affiliate account that I could link out to, so if anyone ever thinks like me and wants to purchase an item, I'll be able to see. This would primarily be for the purpose of learning a bit about something new, I really don't expect to make any money from it.

From there, I also created an affiliate account with my chosen hosting provider Eco Hosting, after chatting with a colleague in the market for a domain. So, I've been toying with CNAMES and subdomains to try and make this a little more useable and professional looking.


Lastly on the website front, I had an idea in my head for some time now for a website that has a bunch of how-to guides about things I've learned while streaming on Twitch.

Things like how to do certain things in Open Broadcast Studio, setup cameras and microphones, add transitions and more custom elements like counters using Streamer.bot.

The ultimate goal would be to have written articles outlining the steps, with an accompanying YouTube video.

The sites working title is "Streaming is Hard"

If you're reading this and have any interest, do please leave a comment to say so and if there is anything particularity you wish to see on there.

There's not really a timeline for this as such. back along I went through my current OBS configuration and noted everything down, with the intention of one day ripping it all out and doing a stream where I set it all up from scratch.

This way, I can easily split it up in to clips to add to the articles. What would be really cool and time-saving would be if I could get some sort of step recorder that I could use to create the framework of the written article. I'll have to do some research, If I remember correctly the built-in windows step record is not quite as clever as all that.


That's about it for this one. I know I say this every couple of years, but I am, once again, going to try and update this blog more frequently and I have a number of new posts in the pipe.

I'm going to try and find a balance between frequency and energy expenditure, so that I don't burn out too quickly.

Keep an eye out for the next one which will be in a few days to a week. I'm not sure which one I will choose for the next instalment, most of them being of a technical nature, outlining what I've setup or done with a particular service or piece of software, but I think they have the bones of something interesting.

Take care of yourself and keep an eye on your spoons.