• 21-02-2021, 18:57:21
    #1
    Merhaba,
    IRC Socket bot yapıyorum her şey tamam ama türkçe karekter sorunu bulunmaktadır bir türlü çözemedim her şeyi denedim hemen hemen..

    <Sockets> on port 6667 de���i� Paradox clients.
  • 21-02-2021, 19:07:20
    #2
    on ^&*:text:*:*:{
      var %text = $mid($rawbytes, $calc($pos($rawbytes, $chr(32), 3) + 2))
      if (!$isutf(%text)) {
        echo -mbflirt $iif(#, #, $nick) $+(<, $left($nick(#, $nick, a, r).pnick, 1), $nick, >) $turkish(%text)
        haltdef
      }
    }
    
    alias turkish $iif($isid, return, echo -a) $utfdecode($utfencode($1-, 162))
    raw 332:*:echo -ta 7Topic is $+(',$chr(15),$turkish($3-),$chr(3),7,',) | halt 
    raw 333:*:echo -ta 7Set by $3 $asctime($4) | halt 
    raw 372:*:echo -ts $turkish($2-) | halt
    on ^*:notice:*:*:echo 5 -tes $+(-,$nick,-) $turkish($1-) | halt
    kodu ile türkçe dil desteğini sağlayabilirsiniz, ayrıca mirc olarak 6.35 üstünü kullanmayın çünkü dil desteği bulunmuyor artık
  • 21-02-2021, 19:09:02
    #3
    TekLanDC adlı üyeden alıntı: mesajı görüntüle
    on ^&*:text:*:*:{
      var %text = $mid($rawbytes, $calc($pos($rawbytes, $chr(32), 3) + 2))
      if (!$isutf(%text)) {
        echo -mbflirt $iif(#, #, $nick) $+(<, $left($nick(#, $nick, a, r).pnick, 1), $nick, >) $turkish(%text)
        haltdef
      }
    }
    
    alias turkish $iif($isid, return, echo -a) $utfdecode($utfencode($1-, 162))
    raw 332:*:echo -ta 7Topic is $+(',$chr(15),$turkish($3-),$chr(3),7,',) | halt
    raw 333:*:echo -ta 7Set by $3 $asctime($4) | halt
    raw 372:*:echo -ts $turkish($2-) | halt
    on ^*:notice:*:*:echo 5 -tes $+(-,$nick,-) $turkish($1-) | halt
    kodu ile türkçe dil desteğini sağlayabilirsiniz, ayrıca mirc olarak 6.35 üstünü kullanmayın çünkü dil desteği bulunmuyor artık
    Kategoriyi görmediniz sanırım

    Node.JS için istemişdim, mIRC olarak değil.
  • 21-02-2021, 19:11:17
    #4
    ibr4him adlı üyeden alıntı: mesajı görüntüle
    Kategoriyi görmediniz sanırım

    Node.JS için istemişdim, mIRC olarak değil.
    const http = require("http");
    const server = http.createServer((request, response) => {
        response.writeHead(200, { "content-type": "text/html; charset=utf-8" });
        response.write("Merhaba<br>Hoşgeldin.");
        response.end();
    });
    server.listen(6667);
    diyelim o zaman hocam

    content-type belirtmeniz gerekli
  • 21-02-2021, 19:12:09
    #5
    TekLanDC adlı üyeden alıntı: mesajı görüntüle
    const http = require("http");
    const server = http.createServer((request, response) => {
        response.writeHead(200, { "content-type": "text/html; charset=utf-8" });
        response.write("Merhaba<br>Hoşgeldin.");
        response.end();
    });
    server.listen(6667);
    diyelim o zaman hocam

    content-type belirtmeniz gerekli
    Web için istemiş olsaydım doğru ama istediğim Bot için
  • 23-02-2021, 16:49:27
    #6
    Bilen kimse yok mu çözemedim hala sorun devam ediyor.
  • 26-02-2021, 09:28:07
    #7
    Bildiğimiz TCP socket'den okuyorsun değil mi? Gelen data'yı data.toString("utf-8")
    şeklinde yapılandırıp tekrar bi dener misin?
  • 26-02-2021, 11:22:20
    #8
    noyz adlı üyeden alıntı: mesajı görüntüle
    Bildiğimiz TCP socket'den okuyorsun değil mi? Gelen data'yı data.toString("utf-8")
    şeklinde yapılandırıp tekrar bi dener misin?
    Onu denedim yine aynı.

    Socket açılışı;
    const igs = IRCSocket({
      socket: netsocket,
      port: 6667
      server: sunucuip,
      nicknames: "Deney"
      username: ident,
      realname: fullname,
      capabilities: { requires: ["multi-prefix", "userhost-in-names"], wants: ["account-notify"] },
      timeout: 5 * 60 * 1000
    });
  • 26-02-2021, 16:22:44
    #9
    Kodun kalanını incelememe izin verir misin yardımcı olmaya çalışayım. DM ile ulaşabilirsin