This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: pip install twitchapi | |
# A seperate credentials/twitch.py file needs to be created with the following contents without the leading hashtags (#): | |
#clientID = "<your twitch client id here>" | |
#clientSecret = "<your twitch client scret here>" | |
# Twitch provides a guide on how to create these here: https://dev.twitch.tv/docs/authentication/register-app/ | |
# Note when creating a new application you need to make sure the OAuth Redirect URLs are set to: http://localhost:17563 | |
# You will also need to change the `targetChanel = "<your channel>"` below, the rest of this file can be safely ignored! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from api import PluginBase, Message, Color | |
from itertools import chain | |
import requests, asyncio | |
class Plugin(PluginBase): | |
"""A plugin that adds Better Twitch.tv emotes to messages.""" | |
name = "Better Twitch.tv Emotes Plugin" | |
platform = "twitch" | |
# platformID = "818635195" # Can be found from: https://www.streamweasels.com/tools/convert-twitch-username-to-user-id/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: pip install twitchapi | |
# A seperate credentials/twitch.py file needs to be created with the following contents without the leading hashtags (#): | |
#clientID = "<your twitch client id here>" | |
#clientSecret = "<your twitch client scret here>" | |
# Twitch provides a guide on how to create these here: https://dev.twitch.tv/docs/authentication/register-app/ | |
# Note when creating a new application you need to make sure the OAuth Redirect URLs are set to: http://localhost:17563 | |
# You will also need to change the `targetChanel = "<your channel>"` below, the rest of this file can be safely ignored! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: pip install websocket-client cbor2 | |
# Import required packages | |
from api import PluginBase, Message, Color | |
from flask import escape | |
import threading | |
import asyncio | |
import json | |
import websocket | |
import base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: pip install git+https://github.com/KaitoCross/pytchat.git@developing | |
# Importing required packages | |
from api import PluginBase, Message, Color | |
from flask import escape | |
from pytchat import LiveChatAsync, ChatDataFinished | |
import asyncio | |
class Plugin(PluginBase): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or distribute | |
this software, either in source code form or as a compiled binary, for any | |
purpose, commercial or non-commercial, and by any means. | |
In jurisdictions that recognize copyright laws, the author or authors of | |
this software dedicate any and all copyright interest in the software to | |
the public domain. We make this dedication for the benefit of the public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or distribute | |
this software, either in source code form or as a compiled binary, for any | |
purpose, commercial or non-commercial, and by any means. | |
In jurisdictions that recognize copyright laws, the author or authors of | |
this software dedicate any and all copyright interest in the software to | |
the public domain. We make this dedication for the benefit of the public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: You must update your twitch URL by editing this file! | |
# Import required packages | |
from api import PluginBase, Message, Color | |
from flask import escape | |
import threading | |
import itertools | |
import asyncio | |
import irc.client_aio | |
import irc.client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: pip install tls_client | |
# Import required packages | |
from api import PluginBase, Message, Color | |
from flask import escape | |
import asyncio | |
import websockets | |
import json | |
import sys | |
import tls_client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <webgpu/webgpu.hpp> | |
#include <utility> | |
#include <string_view> | |
#include <span> | |
#include <cmath> | |
#include <iostream> | |
namespace helpers { | |
constexpr static size_t invalid = std::numeric_limits<size_t>::max(); |