How to program a Twitch bot with Python

Twitch is currently the largest streaming platform. Due to the high number of viewers, many steamers not only use human moderation teams, but also moderation bots. Bots can be useful when moderating Twitch chats as they can help you enforce rules and keep the chat organized. Here are a few tasks that bots can do: Filter out inappropriate or spam messages Issuing warnings to users who break the rules Answers to frequently asked questions or commands from users Entertainment through for example a question and answer quiz Connect external systems such as subscriber alarms or games with chat integration By automating these tasks, bots can help your moderators keep chat clean and focused, giving you more time to interact with your viewers....

January 11, 2023 · 4 min · Quisl
How to create a perfect cookie banner for your blog in Javascript

How to create a perfect cookie banner for your website with JavaScript

Cookie banners are used to obtain consent for the use of cookies from your website visitors. This is a legal requirement in many countries, including the European Union and its member states - including Germany - as well as other countries around the world. They help protect user privacy and give them control over how their information is collected and used by your site. In this post, I want to give you a tool that I used to create the cookie banner for my blog: Cookieconsent....

December 30, 2022 · 9 min · Quisl
Stuck resource is terminating

How To Delete Stuck Kubernetes Resources

Kubernetes is a powerful tool for managing containerized applications, but sometimes resources can become stuck and difficult to remove. This can happen for a variety of reasons, such as conflicts with other resources, problems with the resource itself, or issues with the Kubernetes cluster. Here are some things you can try to delete a resource… The regular way Delete a single resource: kubectl delete RESOURCETYPE RESOURCENAME -n NAMESPACE While -n NAMESPACE can be omited if the resource is in the default namespace or if resources of this resource type can’t be in namespaces....

December 16, 2022 · 2 min · Quisl

Redis with Python

Redis is a simple but powerful message broker that You can use as a communication medium for a distributed micro-service environment with multiple replicas. In this tutorial, we will use its “key value” and “task queue” features to store and access data. Redis server Install and execute Docker Desktop. Use the following command to start a single Redis 7 instance within a Docker container and make it listen to port 9999 on localhost....

November 3, 2022 · 2 min · Quisl

Python find list entries in other list

Here is a neat one-liner in Python 3 to quickly check if entries from one Python list are available in another Python list. This can also be used to apply other functions. Code list1 = ["a","b","c","d"] list2 = ["b","c","d"] list3 = ["a","x","z"] # Check if all entries of list2 are in list1 print(all(value in list1 for value in list2)) # Check if all entries of list3 are in list1 print(all(value in list1 for value in list3)) True False Explanation all(x) is a built-in function that returns True if all entries in the Python list x are True....

October 15, 2022 · 2 min · Quisl