Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require('tmi.js');
- var options = {
- options: {
- debug: true
- },
- identity: {
- username: "Yukarin33",
- password: "oauth:f664764cx8xcsjlj219tzygxvthlwh"
- },
- channels: ["LegatusLeman"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port) {
- client.say("LegatusLeman", "Yukarin Bot başarıyla güncellendi.");
- });
- client.on('chat', function(channel, user, message, self) {
- if(user.username === "Yukarin33" && message === "!kapat") {
- client.disconnect(client.say("LegatusLeman", "Yukarin Bot kapatıldı."));
- }
- else {
- client.say("Yarrağın yeterince uzun değil delikanlı.");
- }
- });
- client.on('subscription', function(channel, username, method) {
- client.say("LegatusLeman", username + "Abone olup orduya katıldığın için teşekkür ederiz legatusSeven legatusSeven ");
- });
- client.on('resub', function(channel, username, months, message) {
- client.say("LegatusLeman", username + months + "Ay Abone olup orduya katıldığın için teşekkür ederiz legatusSeven legatusSeven ");
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!sellout") {
- client.say("LegatusLeman", "Abone olup ordu'da savasmak mı istiyorsun iste link : https://goo.gl/UmcT3n Facebook'dan beğenip destek vermek mi istiyorsun işte link : https://goo.gl/YCiJUm Twitter'dan takip edip destek vermek mi istiyorsun işte link : https://goo.gl/5QL29V Steam'den hediyelik eşya mı atmak istiyorsun işte link : https://goo.gl/o2jmMZ");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement