IMGTwitch PRIVMSG ne sont pas envoyées à d'autres canaux
Conosle.WriteLine ("Ça a marché!") Il est en cours d'exécution sur tous les Twitch.tv/channels
Mais ...
PRIVMSG # Twitch.tv/channel ne fonctionne que sur mon propre canal qui est twitch.tv/traps_are_not_gay_baka
Je veux dire que je peux lire des messages de n'importe quel canal que je mets dans la chaîne de canal, mais les PRIVMSG ne fonctionnent qu'avec mon propre canal et quand je le change à quelque chose comme Twitch .tv/bakoni qui est un canal aléatoire que j'ai trouvé et utilisé pour tester PRIVMSGs n'arrive tout simplement pas.
Pourquoi est-ce?
EDIT: (le code)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text;
using System.Net.Sockets;
using System.IO;
namespace chatrig
{
class chatrig
{
static String ip = "irc.twitch.tv";
static Int32 port = 6667;
static String username = "traps_are_not_gay_baka";
static String password = "oauth:hokzuz***********ebkv5gnb";
static String clientID = "2lubvv5***********3f2m8orz24c";
static String channel = "bakoni";
static TcpClient tcpClient = new TcpClient(ip, port);
static StreamReader reader = new StreamReader(tcpClient.GetStream());
static StreamWriter writer = new StreamWriter(tcpClient.GetStream());
static void Main(string[] args)
{
writer.WriteLine("PASS " + password);
writer.Flush();
writer.WriteLine("NICK " + username);
writer.Flush();
writer.WriteLine("USER " + username + " 8 * :" + username);
writer.Flush();
writer.WriteLine("JOIN #" + channel);
writer.Flush();
while (true)
{
var message = reader.ReadLine();
Console.WriteLine(message);
if (message.Contains("yandYo"))
{
writer.WriteLine("PRIVMSG #" + channel + " :" + "w" + "\r\n");
writer.Flush();
Console.WriteLine("It worked!");
}
}
}
}
}
S'il vous plaît inclure votre code dans la question - l'image est inutilisable. Voir https://stackoverflow.com/help/how-to-ask – skwidbreth
Je l'ai inclus tout de suite –