<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[We-are-Streamers Forum - Chat Bots]]></title>
		<link>https://forum.we-are-streamers.de/</link>
		<description><![CDATA[We-are-Streamers Forum - https://forum.we-are-streamers.de]]></description>
		<pubDate>Thu, 21 May 2026 00:37:16 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Streamer.bot]]></title>
			<link>https://forum.we-are-streamers.de/thread-45.html</link>
			<pubDate>Sun, 18 Jun 2023 22:32:03 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.we-are-streamers.de/member.php?action=profile&uid=76">Holger_Gilruth</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.we-are-streamers.de/thread-45.html</guid>
			<description><![CDATA[Ich biete kostenlose Hilfe an falls jemand mit Streamer.bot seinen Stream aufwerten möchte oder Fragen hat was der überhaupt kann und warum der gefühlt so kompliziert ist.<br />
<br />
Die Möglichkeiten sind quasi unendlich damit. Sei es für Kanalpunkte die Cam wechseln, Announcements schreiben etc. pp]]></description>
			<content:encoded><![CDATA[Ich biete kostenlose Hilfe an falls jemand mit Streamer.bot seinen Stream aufwerten möchte oder Fragen hat was der überhaupt kann und warum der gefühlt so kompliziert ist.<br />
<br />
Die Möglichkeiten sind quasi unendlich damit. Sei es für Kanalpunkte die Cam wechseln, Announcements schreiben etc. pp]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Fragen zu [HowTo] Wie erstelle ich meinen EIGENEN Twitch Chat Bot]]></title>
			<link>https://forum.we-are-streamers.de/thread-6.html</link>
			<pubDate>Tue, 25 Jan 2022 19:36:42 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.we-are-streamers.de/member.php?action=profile&uid=1">Punio85</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.we-are-streamers.de/thread-6.html</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align">hier könnt ihr eure fragen zum Thema <a href="https://forum.we-are-streamers.de/thread-2.html" target="_blank" rel="noopener" class="mycode_url">[HowTo] Wie erstelle ich meinen EIGENEN Twitch Chat Bot</a> stellen<br />
ich erweitere das Tutorial wenn nötig</div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align">hier könnt ihr eure fragen zum Thema <a href="https://forum.we-are-streamers.de/thread-2.html" target="_blank" rel="noopener" class="mycode_url">[HowTo] Wie erstelle ich meinen EIGENEN Twitch Chat Bot</a> stellen<br />
ich erweitere das Tutorial wenn nötig</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[HowTo] Wie erstelle ich meinen EIGENEN Twitch Chat Bot]]></title>
			<link>https://forum.we-are-streamers.de/thread-2.html</link>
			<pubDate>Sat, 06 Nov 2021 10:18:23 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.we-are-streamers.de/member.php?action=profile&uid=1">Punio85</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.we-are-streamers.de/thread-2.html</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align">
<br />
Hi, in diesem Tutorial zeige ich euch wie ihr mit Hilfe der <a href="https://github.com/tmijs/tmi.js" target="_blank" rel="noopener" class="mycode_url">TMI.JS</a> API und <a href="https://nodejs.org/de/" target="_blank" rel="noopener" class="mycode_url">NODE.JS</a> einen Twitch Bot erstellen könnt.<br />
</div>
<div style="text-align: center;" class="mycode_align">Fragen zum Tutorial können <span style="font-weight: bold;" class="mycode_b"><a href="https://forum.we-are-streamers.de/thread-6.html" target="_blank" rel="noopener" class="mycode_url">HIER</a></span> gestellt werden <br />
bitte nicht in diesem Post antworten damit ich das Tutorial jederzeit erweitern kann <br />
<span style="font-style: italic;" class="mycode_i">( fragen die hier gestellt werden, werden kommentarlos gelöscht )</span><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">1 - Programme</span></span><br />
<br />
als aller erstes installieren wir uns <a href="https://nodejs.org/de/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">NODE.JS</span></a> so wie einen Editor mit dem man <span style="font-weight: bold;" class="mycode_b">.JS</span> und <span style="font-weight: bold;" class="mycode_b">.BAT</span> Dateien erstellen und bearbeiten kann ( z.b. <a href="https://notepad-plus-plus.org/downloads/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">Notepad++</span></a><span style="font-weight: bold;" class="mycode_b">  oder</span><span style="font-weight: bold;" class="mycode_b"> </span><a href="https://code.visualstudio.com/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">Visual Studio Code</span></a> <span style="font-style: italic;" class="mycode_i">)  </span><br />
dazu einfach auf den Seiten die gewünschten Version herunterladen und nach Anweisung installieren.<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-small;" class="mycode_size"><span style="font-style: italic;" class="mycode_i">achtet beim erstellen der Dateien darauf das die Codierung UTF-8 ist um spätere Umlaut Fehler zu vermeiden</span><br />
</span></span><br />
<hr class="mycode_hr" />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">2 - Vorbereitungen</span></span><br />
<br />
wir erstellen einen neuen Ordner namens <span style="font-weight: bold;" class="mycode_b">TwitchBotTutorial</span> <span style="font-style: italic;" class="mycode_i">( oder einen anderen Namen Hauptsache wir finden ihn schnell wieder )</span><br />
in diesem Ordner erstellen wir eine Datei namens <span style="font-weight: bold;" class="mycode_b">app.js</span><br />
als nächstes starten wir die Windows Eingabeaufforderung <span style="font-style: italic;" class="mycode_i">( <span style="font-weight: bold;" class="mycode_b">Windows Taste + R</span> im darauf folgenden Fenster <span style="font-weight: bold;" class="mycode_b">cmd</span> eingeben und Enter drücken )</span><br />
<br />
in der Eingabeaufforderung navigieren wir mit Hilfe des Kommandos <span style="font-weight: bold;" class="mycode_b">CD </span>zu dem eben erstellten Ordner. wenn dieser z.b. auf dem Desktop liegt sieht das Kommando wie folgt aus<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>CD C:&#92;Users&#92;&lt;DeinName&gt;&#92;Desktop&#92;TwitchBotTutorial</code></div></div><span style="font-size: x-small;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">&lt;DeinName&gt; muss natürlich mit dem Namen deines PCs ersetzt werden <br />
</span></span></span><br />
als erstes initialisieren wir <span style="font-weight: bold;" class="mycode_b">NODE.JS</span> indem wir in die Eingabeaufforderung folgendes eingeben</div>
<div style="text-align: center;" class="mycode_align"><div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>npm init</code></div></div><span style="font-size: x-small;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">bei den folgenden abfragen könnt ihr einfach mit Enter bestätigen oder die gewünschten daten eingeben</span></span><br />
<br />
nun generieren wir uns mit Hilfe von <span style="font-weight: bold;" class="mycode_b">NODE.JS</span> die benötigte <span style="font-weight: bold;" class="mycode_b">TMI.JS</span> indem wir in die Eingabeaufforderung folgendes eingeben<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>npm install tmi.js</code></div></div><span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-small;" class="mycode_size">wenn alles erfolgreich war sollte in dem Ordner nun ein neuer Ordner namens node_modules zu finden sein<br />
</span></span><br />
<br />
<hr class="mycode_hr" />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">3 -  Verbindung mit dem Twitch Chat aufbauen</span></span><br />
<br />
wir erstellen in unserem Ordner eine <span style="font-weight: bold;" class="mycode_b">app.js</span> öffnen diese mit <span style="font-weight: bold;" class="mycode_b">Notepad++ </span>und schreiben folgendes hinein<br />
<div class="codeblock"><div class="title">Javascript</div><div class="body"><code><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Owner    <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerChannelNameInDemGejointWerdenSoll'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// wir speichern unseren Channel Namen in eine Konstante</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Bot      <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerBotChannelName'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// das selbe gilt für den bot</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> BotOAuth <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerOAuthDesBots'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// diesen erhaltet ihr auf https://twitchapps.com/tmi/</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Channels <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>Owner<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// hier könnten noch mehr Chanel eingetragen werden (mit Komma getrennt) wo der bot joinen soll aber es reicht ja unserer! deswegen braucht ihr hier nichts verändern</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// *************************************************************</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// **** NACH DIESER LINIE BRAUCHT IHR NICHS MEHR ÄNDERN ********</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// *************************************************************</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> tmi <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tmi.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> options<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> debug<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> connection<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> secure<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> reconnect<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> identity<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> username<span style="color: #339933;">:</span> Bot<span style="color: #339933;">,</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> password<span style="color: #339933;">:</span> BotOAuth</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> channels<span style="color: #339933;">:</span> Channels</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> client <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> tmi.<span style="color: #660066;">client</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client.<span style="color: #660066;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// wenn der bot zum chat verbindet</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'connected'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>adress<span style="color: #339933;">,</span> port<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Adresse: &quot;</span> <span style="color: #339933;">+</span> adress <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; Port: &quot;</span> <span style="color: #339933;">+</span> port<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// gibt eine Nachricht in der Konsole aus damit man sieht das der bot verbunden ist</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #006600; font-style: italic;">// Ausgabe im Chat das man erkennt das der Bot verbunden ist ( könnte auch weg gelassen werden ) *naaa wer versteht die Anspielung :p* </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    client.<span style="color: #660066;">say</span><span style="color: #009900;">&#40;</span>Owner<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Arbeit Arbeit!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Achtung hier wird angegeben in welchem Chat geschrieben wird ... nicht wer schreibt !</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></code></div></div><br /><br />
<span style="font-weight: bold;" class="mycode_b">HierDerChannelNameInDemGejointWerdenSoll</span> muss auf deinen Channel Name geändert werden<br />
<span style="font-weight: bold;" class="mycode_b">HierDerBotChannelName</span> ist der Chanel Namen deins bots<br />
<span style="font-weight: bold;" class="mycode_b">HierDerOAuthDesBots </span>ist der Token ( das "Passwort" ) des bot Accounts, diesen erhaltet ihr indem ihr euch mit dem bot Account <a href="https://twitchapps.com/tmi/" target="_blank" rel="noopener" class="mycode_url">HIER</a> einloggt<br />
der Rest dürfte durch die Kommentare selbst erklärend sein<br />
<br />
um das ganze auch zu starten erstellen wir uns eine <span style="font-weight: bold;" class="mycode_b">start.bat</span> Datei im selben Ordner mit folgendem Inhalt<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>node app.js<br />
pause</code></div></div>und führen diese zum testen einmal aus nun sollte in eurem Chat die Nachricht "Arbeit Arbeit!" von eurem Bot ausgegeben werden<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><br />
somit ist der ChatBOT einsatzfähig und Startklar kommen wir nun zu den Grundlagen der Commands</span></span><br />
<br />
</div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align">
<br />
Hi, in diesem Tutorial zeige ich euch wie ihr mit Hilfe der <a href="https://github.com/tmijs/tmi.js" target="_blank" rel="noopener" class="mycode_url">TMI.JS</a> API und <a href="https://nodejs.org/de/" target="_blank" rel="noopener" class="mycode_url">NODE.JS</a> einen Twitch Bot erstellen könnt.<br />
</div>
<div style="text-align: center;" class="mycode_align">Fragen zum Tutorial können <span style="font-weight: bold;" class="mycode_b"><a href="https://forum.we-are-streamers.de/thread-6.html" target="_blank" rel="noopener" class="mycode_url">HIER</a></span> gestellt werden <br />
bitte nicht in diesem Post antworten damit ich das Tutorial jederzeit erweitern kann <br />
<span style="font-style: italic;" class="mycode_i">( fragen die hier gestellt werden, werden kommentarlos gelöscht )</span><br />
<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">1 - Programme</span></span><br />
<br />
als aller erstes installieren wir uns <a href="https://nodejs.org/de/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">NODE.JS</span></a> so wie einen Editor mit dem man <span style="font-weight: bold;" class="mycode_b">.JS</span> und <span style="font-weight: bold;" class="mycode_b">.BAT</span> Dateien erstellen und bearbeiten kann ( z.b. <a href="https://notepad-plus-plus.org/downloads/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">Notepad++</span></a><span style="font-weight: bold;" class="mycode_b">  oder</span><span style="font-weight: bold;" class="mycode_b"> </span><a href="https://code.visualstudio.com/" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">Visual Studio Code</span></a> <span style="font-style: italic;" class="mycode_i">)  </span><br />
dazu einfach auf den Seiten die gewünschten Version herunterladen und nach Anweisung installieren.<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-small;" class="mycode_size"><span style="font-style: italic;" class="mycode_i">achtet beim erstellen der Dateien darauf das die Codierung UTF-8 ist um spätere Umlaut Fehler zu vermeiden</span><br />
</span></span><br />
<hr class="mycode_hr" />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">2 - Vorbereitungen</span></span><br />
<br />
wir erstellen einen neuen Ordner namens <span style="font-weight: bold;" class="mycode_b">TwitchBotTutorial</span> <span style="font-style: italic;" class="mycode_i">( oder einen anderen Namen Hauptsache wir finden ihn schnell wieder )</span><br />
in diesem Ordner erstellen wir eine Datei namens <span style="font-weight: bold;" class="mycode_b">app.js</span><br />
als nächstes starten wir die Windows Eingabeaufforderung <span style="font-style: italic;" class="mycode_i">( <span style="font-weight: bold;" class="mycode_b">Windows Taste + R</span> im darauf folgenden Fenster <span style="font-weight: bold;" class="mycode_b">cmd</span> eingeben und Enter drücken )</span><br />
<br />
in der Eingabeaufforderung navigieren wir mit Hilfe des Kommandos <span style="font-weight: bold;" class="mycode_b">CD </span>zu dem eben erstellten Ordner. wenn dieser z.b. auf dem Desktop liegt sieht das Kommando wie folgt aus<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>CD C:&#92;Users&#92;&lt;DeinName&gt;&#92;Desktop&#92;TwitchBotTutorial</code></div></div><span style="font-size: x-small;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="font-style: italic;" class="mycode_i">&lt;DeinName&gt; muss natürlich mit dem Namen deines PCs ersetzt werden <br />
</span></span></span><br />
als erstes initialisieren wir <span style="font-weight: bold;" class="mycode_b">NODE.JS</span> indem wir in die Eingabeaufforderung folgendes eingeben</div>
<div style="text-align: center;" class="mycode_align"><div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>npm init</code></div></div><span style="font-size: x-small;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">bei den folgenden abfragen könnt ihr einfach mit Enter bestätigen oder die gewünschten daten eingeben</span></span><br />
<br />
nun generieren wir uns mit Hilfe von <span style="font-weight: bold;" class="mycode_b">NODE.JS</span> die benötigte <span style="font-weight: bold;" class="mycode_b">TMI.JS</span> indem wir in die Eingabeaufforderung folgendes eingeben<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>npm install tmi.js</code></div></div><span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-small;" class="mycode_size">wenn alles erfolgreich war sollte in dem Ordner nun ein neuer Ordner namens node_modules zu finden sein<br />
</span></span><br />
<br />
<hr class="mycode_hr" />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">3 -  Verbindung mit dem Twitch Chat aufbauen</span></span><br />
<br />
wir erstellen in unserem Ordner eine <span style="font-weight: bold;" class="mycode_b">app.js</span> öffnen diese mit <span style="font-weight: bold;" class="mycode_b">Notepad++ </span>und schreiben folgendes hinein<br />
<div class="codeblock"><div class="title">Javascript</div><div class="body"><code><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Owner    <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerChannelNameInDemGejointWerdenSoll'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// wir speichern unseren Channel Namen in eine Konstante</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Bot      <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerBotChannelName'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// das selbe gilt für den bot</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> BotOAuth <span style="color: #339933;">=</span> <span style="color: #3366CC;">'HierDerOAuthDesBots'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// diesen erhaltet ihr auf https://twitchapps.com/tmi/</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">const</span> Channels <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>Owner<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// hier könnten noch mehr Chanel eingetragen werden (mit Komma getrennt) wo der bot joinen soll aber es reicht ja unserer! deswegen braucht ihr hier nichts verändern</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// *************************************************************</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// **** NACH DIESER LINIE BRAUCHT IHR NICHS MEHR ÄNDERN ********</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// *************************************************************</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> tmi <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tmi.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> options<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> debug<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> connection<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> secure<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> reconnect<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> identity<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> username<span style="color: #339933;">:</span> Bot<span style="color: #339933;">,</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> password<span style="color: #339933;">:</span> BotOAuth</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> channels<span style="color: #339933;">:</span> Channels</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">var</span> client <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> tmi.<span style="color: #660066;">client</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client.<span style="color: #660066;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #006600; font-style: italic;">// wenn der bot zum chat verbindet</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'connected'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>adress<span style="color: #339933;">,</span> port<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Adresse: &quot;</span> <span style="color: #339933;">+</span> adress <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; Port: &quot;</span> <span style="color: #339933;">+</span> port<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// gibt eine Nachricht in der Konsole aus damit man sieht das der bot verbunden ist</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #006600; font-style: italic;">// Ausgabe im Chat das man erkennt das der Bot verbunden ist ( könnte auch weg gelassen werden ) *naaa wer versteht die Anspielung :p* </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    client.<span style="color: #660066;">say</span><span style="color: #009900;">&#40;</span>Owner<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Arbeit Arbeit!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Achtung hier wird angegeben in welchem Chat geschrieben wird ... nicht wer schreibt !</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></code></div></div><br /><br />
<span style="font-weight: bold;" class="mycode_b">HierDerChannelNameInDemGejointWerdenSoll</span> muss auf deinen Channel Name geändert werden<br />
<span style="font-weight: bold;" class="mycode_b">HierDerBotChannelName</span> ist der Chanel Namen deins bots<br />
<span style="font-weight: bold;" class="mycode_b">HierDerOAuthDesBots </span>ist der Token ( das "Passwort" ) des bot Accounts, diesen erhaltet ihr indem ihr euch mit dem bot Account <a href="https://twitchapps.com/tmi/" target="_blank" rel="noopener" class="mycode_url">HIER</a> einloggt<br />
der Rest dürfte durch die Kommentare selbst erklärend sein<br />
<br />
um das ganze auch zu starten erstellen wir uns eine <span style="font-weight: bold;" class="mycode_b">start.bat</span> Datei im selben Ordner mit folgendem Inhalt<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>node app.js<br />
pause</code></div></div>und führen diese zum testen einmal aus nun sollte in eurem Chat die Nachricht "Arbeit Arbeit!" von eurem Bot ausgegeben werden<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><br />
somit ist der ChatBOT einsatzfähig und Startklar kommen wir nun zu den Grundlagen der Commands</span></span><br />
<br />
</div>]]></content:encoded>
		</item>
	</channel>
</rss>